• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

qmhande and grep

C

Chris@

Guest
I've got a bunch of mails in my remote queue, and I'm trying to just list the subject lines by doing:
/home/qmhandle/qmHandle -R | grep Subject

However, it comes back with no results. If I try:
qmHandle -R > qm.txt
then
grep Subject qm.txt
it still comes back with no results. If I then:
less qm.txt
it tells me qm.txt is a binary file (although I can still view it). I searched the Web for this and I found someone else with the same problem but no solutions. Does anyone know how to get qmhandle to show results in a form readable by grep? Or how to show the subject lines of all the mail in the qmail queue?
 
This just works on my servers:

Code:
qmhandle.pl -R | grep Subject

I use ART's qmhandle package (which installs the script as /usr/bin/qmhandle.pl)
 
Back
Top