On 23-Apr-2008, at 15:34, Gerald V. Livingston II wrote:
Robert Kuropkat wrote:
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.
I am using sendmail. I go look up the sendmail equivalent to what
you
suggest.
It is a BAD idea to do that with /var/spool/mail/$LOGNAME
If something goes wrong with the delivery *again* then it will be
writing the messages back to /var/spool/mail/$LOGNAME while you are
reading from the file. Double the messages, double the fun, every time
you try it and fail.
cp /var/spool/mail/$LOGNAME /home/$LOGNAME/tempmbox
rm /var/spool/mail/$LOGNAME
ooooo, I know that's caused problems for me in the past.
echo "" > /var/spool/mail/$LOGNAME
--
Yeah, Nick. Nick's the kinda guy you can trust. Nick's your buddy
Nick's the
kinda guy you drink beers with. The kinda guy that doesn' care if you
puke in his car. Nick.
____________________________________________________________
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