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

Robert Brockway robert-5LEc/6Zm6xCUd8a0hrldnti2O/JbrIOy at public.gmane.org
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 :)

Rob

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





More information about the Legacy mailing list