On Mon, 3 Jun 2002, Udi Mottelo wrote:
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
Opss, I am sory! It will be better if you do:
/bin/ls -d | sed -n 's,^[a-z0-9][a-z0-9]*$,formail -s /usr/sbin/sendmail -i &
< &,p' | sh
Bye,
Udi
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail