• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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