procmail
[Top] [All Lists]

Re: "redeliver" email in /var/spool/mail to proper, user Maildir?

2008-04-23 14:12:01
Robert Kuropkat wrote:
Marcin Orlowski wrote:
Robert Kuropkat wrote:

Ignoring for the moment the broken infrastructure, once I restart
autofs, is there a way to "redeliver" the emails that have accumulated
in /var/spool/mail for all users?
Depending on your MTA and setup you may want to reinject messages
back to MTA queue for reprocessing (for Qmail it'd be qmail-inject
tool) contrary to already proposed direct mbox/mdir delivery. This
approach ensures it goes the regular way () including users' procmail
recipes and stuff.

Marcin


hmmm, I liked this suggestion because it seemed so simple:

formail -ds procmail < /var/spool/mail/$LOGNAME

But testing it on my own mail file does not seem to be working, it's
just hung.  It's only 1Mg so I would not expect it to actually take long
to process.

This might indicate that either procmail or formail is waiting for
input from stdin.  You might try

   formail -s wc < mailbox

to see if it is formail or procmail (or you could just check the
procmail logfile.
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail