Try using formail instead. The article I linked off the main page at
http://www.linux.ie/ about stopping spam explains you should use the
following,
cat mbox | formail -s procmail
or for those who don't like cats, this should work equally as well,
formail -s procmail < mbox
to test your procmail recipes..
Donncha.
"John P . Looney" wrote:
>> I'm trying to get procmail or something like it to deliver to home
> directories based on some MySQL tables. And I'm a little confused. I took
> a look at this:
>http://johoho.eggheads.org/mysqlmail/index.shtml> and tried to get it to work. And it didn't, and debugging is a pain,
> because I'm not 100% sure how procmail gets the mail from postfix - I want
> to simulate a delivery from the command line.
>> At the moment I'm doing "cat testmail | procmail" where testmail looks
> like:
>> Subject: bing
> From: john at antefacto.com> To: valen at sunnydale.antefacto.com>> asdasd
> asd
> a
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!