qextra2mdir - Extracts mails from qmail queue log. |
qextra2mdir [options] < queuelog |
qextra2mdir Extracts mails from qmail
queue
log. |
This utility is to restore maildir files from qmail queue log. The queue log is a feature of qmail to keep a copy of all incoming and outgoing mail messages in a mailbox file. To setup the queue log, set QUEUE_EXTRA to "Tlog\0" and QUEUE_EXTRALEN to 5 in conf-unusual.h qmail source. Recompile qmail. Put ./msg-log into ~alias/.qmail-log. |
qextra2mdir accepts the following options: |
-h, --help |
Show summary of options. |
-V, --version |
Show version of program. |
-e, --email |
The email to be converted to maildir. |
-f, --from |
Mails sent by "email" (-e). |
-t, --to |
Mails received by "email" (-e). |
-s, --subject |
A string to be added to the subject field when converting to maildir. This feature works only for emails sent by -e parameter. |
-l, --file |
A file list with mails separeted by LF to be converted in batch mode. In this case the parameters -f and -t are ignored and both are considered on. |
qextra2mdir -t -e john@domain.com < queuelog |
Converts in maildir all mails in queuelog file that has "To: john@domain.com". |
qextra2mdir -t -f -e john@domain.com < queuelog |
Converts in maildir all mails in queuelog that has "To: john@domain.com" and "From: john@domain.com". |
qextra2mdir -s "*** Sent ***" -t -f -e john@domain.com < queuelog |
Converts in maildir all mails in queuelog that has "To: john@domain.com" and "From: john@domain.com" and add a string -s in all mails sent by john@domain.com . |
qextra2mdir -l maillist < queuelog |
Converts all mails received and sent by mails listed in the file maillist. |
There are more details in |
http://www.lifewithqmail.org/lwq.html#queue_extra |
To download the source |
http://sourceforge.net/projects/qextra2mdir/ |
Jorge Ventura <jorge.ventura@fusemail.com>. |