LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Use procmail to process old local mail? (https://www.linuxquestions.org/questions/linux-software-2/use-procmail-to-process-old-local-mail-671990/)

kuangchen 09-24-2008 02:48 AM

Use procmail to process old local mail?
 
Hey, guys:

Here is the thing: I accidently retrieved emails using fetchmail without any argument. So you know, my mails are stored locally in /var/{my user name}/mail and since no copies are left on the mailserver. I can read those mails using the "mail" command.

Now I would like to use procmail to process these locally stored emails so that they can be dropped into specified places for mutt. I know how procmail can be used in combination with fetchmail using -m command. But I have no idea how to feed local emails manually.

Any suggestions? Thanks.

unSpawn 09-24-2008 01:12 PM

With MBOX format you could 'cat /some/mailbox | formail -s | procmail -m /some/recipefile'.

kuangchen 09-25-2008 02:15 AM

Problem solved. Thanks, unSpawn!


All times are GMT -5. The time now is 02:41 PM.