running procmail on the contents of /var/mail/$USER

Robert Brockway robert-5LEc/6Zm6xCUd8a0hrldnti2O/JbrIOy at
Wed Jul 28 15:08:20 UTC 2004

On Wed, 28 Jul 2004, William O'Higgins wrote:

> Yes, that's where the attempts above come from.  These recipies seem to
> be based on getting processed via procmail, and I am trying to get an
> mbox file *into* procmail.  I tried "cat /var/mail/$USER | formail -ds
> procmail", but I get the same result - the command starts, but doesn't
> do anything and needs to be Ctrl-C'd.  So, the problem remains - what

Sounds like a STDIN problem to me...

> syntax is required to get the individual messages in my spool to be
> processed by procmail?  Thanks again.

Here is a working example I put together a few months back:

cat ./inbox | formail -s procmail ~foouser/etc/procmail.incoming

No the username is not really foouser but I'm not handing out real
username info (even if the box is hidden behind several firewalls :)


Robert Brockway B.Sc. email: robert-5LEc/6Zm6xCUd8a0hrldnti2O/JbrIOy at, rbrockway-cFo9iiqjkw8eIZ0/mPfg9Q at
Linux counter project ID #16440 (
"The earth is but one country and mankind its citizens" -Baha'u'llah
The Toronto Linux Users Group.      Meetings:
TLUG requests: Linux topics, No HTML, wrap text below 80 columns

More information about the Legacy mailing list