procmail
[Top] [All Lists]

Resending using formail from the command line

2002-06-02 12:15:09
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

It doesn't seem to get the recipient from the headers in the mdb mbox-format file.

This needs to be doable from the command line rather than a procmail recipe, so that I can have a script redeliver mail from each user's file in the directory to their home directory's mailbox.

If you have a notion as to how this can be done, please cc to me as I'm not a list member yet.

.\\ichelle
--------------------
Michelle Brownsworth
System Administrator
Willamette.Net
http://www.willamette.net
Phone (541) 465-3282
Fax   (541) 465-1194
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail