Re: Extract emails from a text file

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/plain)
Delete this message
Reply to this message
Author: der.hans
Date:  
To: Main PLUG discussion list
Subject: Re: Extract emails from a text file
Am 24. Jul, 2006 schwätzte Leslie Williams so:

> 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.


mbox format :).

I believe Cyrus doesn't support mbox format. It's a sad, sad state.

> 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.


You could copy the folder locally and have access to it as a local mbox
folder.

I presume that you'd like to have the messages get properly filtered via
procmail. If that's true look at formail.

The procmail manpage lists info on using the two together, as does the
formail manpage.

ciao,

der.hans
-- 
#  https://www.LuftHans.com/        http://www.CiscoLearning.org/
#  Join the League of Professional System Administrators! https://LOPSA.org/
<moose> Roses are #FF0000,
<moose> Violets are #0000FF,
<moose> All my base,
<moose> Are belong to you.
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss