procmail
[Top] [All Lists]

Re: Resending using formail from the command line

2002-06-03 02:08:31
On Fri, 31 May 2002, Michelle Brownsworth wrote:

I'm trying to resend some mail that was mistakenly delivered to
/var/mail/<user> instead of ~<user>/.mail before I got procmail
completely configured to deliver mail to spools in users' home
directories.  I've been told that formail will do that, but I can't
seem to find an example, and my own attempts have been unsuccessful.
This seems like it would be a reasonable approach but it doesn't
work, unfortunately:

straylight# formail -s /usr/sbin/sendmail < /var/mail/mdb
Recipient names must be specified


cd /var/mail
/bin/ls | sed 's/.*/formail -s /usr/sbin/sendmail & < &/' | sh


Bye,
 Udi

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail