1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

qmhande and grep

Discussion in 'Plesk for Linux - 8.x and Older' started by Chris@, Feb 26, 2007.

  1. Chris@

    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
    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?
  2. breun

    breun Golden Pleskian

    Jun 28, 2005
    Likes Received:
    This just works on my servers:

    qmhandle.pl -R | grep Subject
    I use ART's qmhandle package (which installs the script as /usr/bin/qmhandle.pl)