[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Procmail



On Mon, Nov 10, 2003 at 09:46:41AM -0000, Gareth wrote:
> Hi Guys
> 
Hi


> Does anyone know how to run Procmail against existing messages in
> /var/spool/mail/mbox?
> 

I've done this before with maildir format (1 file per message), where you
just have to cat the message and pipe it into procmail, but if it's in mbox
format you'll need to use the formail program first. This should work, but
I've not tried it for a while, so make a backup just in case.

cat /var/spool/mail/mbox | formail -s procmail

HTH

Tom

> 

-- 
Video games don't affect kids; I mean if Pac-Man affected us as kids, 
we'd all be running around in darkened rooms, munching magic pills and 
listening to repetitive electronic music. ~ K. Wilson, Nintendo, 1989
___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.