procmail
[Top] [All Lists]

Re: Filtering mail from a saved folder.

1996-05-23 14:41:12
Charlie Chan <chan(_at_)silly(_dot_)com> writes:
      If I have a saved folder, and want to extract mail from it 
based on From: field and save it to another file or re-direct it to
/dev/null is there any simple way to do it? 

You can use formail -s to split a berkeley mbox-type folder:

        formail -s procmail some-procmailrc < some-folder

You may want to add a -Y flag to both the commands if you want to ignore
Content-Length: headers:

        formail -Y -s procmail -Y some-procmailrc < some-folder


The file "some-procmailrc" should be a file of procmail recipes doing what
you want.

Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>