At 21:50 2005-06-07 +0930, Luke Vanderfluit wrote:
Hi,
I've had to replace a hard drive and therefore ended up with an mbox file of
about 300 messages.
Uh, ok. One must wonder why your original filtering wasn't doing it's thing...
I have this mbox file, but I don't want to filter each individual mail
into the appropriate mailboxes by hand.
Let's be clear - these are YOUR mailboxes (files belonging to one user),
not the mailboxes of multiple users? If you're dealing with a pile of
system email that was deposited in a single file and you need to sort out
which person each message was addresses to, you've got different problems
(and procmail isn't really the correct tool for that, though you can kludge
it as well as any other tool).
Is there a way that I can get procmail to use my .procmailrc to process just
that one file?
If they're your mailboxes, and you have a ~/.procmailrc:
formail -s procmail < mbox_moved_from_default_location
You want to relocate the mailbox from the spool directory or wherever it
was originally being written at as a safeguard against a default recipe
appending "unmatched" messages to the end of the system mailbox, which in
turn would add content to the end of the file, which would be appended, ad
nauseum.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
____________________________________________________________
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