Extract emails from a text file

Paul Dickson paul at permanentmail.com
Mon Jul 24 21:11:39 MST 2006


On Mon, 24 Jul 2006 19:00:56 -0700, Leslie Williams wrote:

> I have an imap server at home to handle my email. Here is how things
> normally work:
> 
> fetchmail -> postfix -> procmail -> cyrus-imap -> thunderbird
> 
> I made a typo when I was editing my ~/.procmailrc file, and as a result
> all emails that didn't get filtered before the typo got put into a
> single text file in my home directory.
> 
> Any ideas on how I can get these emails back into imap? I've tried
> fiddling with both postfix and procmail as well as moving the file into
> thunderbird's local folders.  So far nothing has worked.

Check out the formail command.  It can parse the mailbox file.

	-Paul



More information about the PLUG-discuss mailing list