QEXTRA2MDIR

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
SEE ALSO
AUTHOR

NAME


qextra2mdir - Extracts mails from qmail queue log.

SYNOPSIS


qextra2mdir [options] < queuelog

DESCRIPTION


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.

OPTIONS


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.

EXAMPLES


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.

SEE ALSO


There are more details in

http://www.lifewithqmail.org/lwq.html#queue_extra


To download the source

http://sourceforge.net/projects/qextra2mdir/

AUTHOR


Jorge Ventura <jorge.ventura@fusemail.com>.

SourceForge.net Logo