LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-24-2008, 03:48 AM   #1
kuangchen
LQ Newbie
 
Registered: Jan 2008
Posts: 9

Rep: Reputation: 0
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.
 
Old 09-24-2008, 02:12 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
With MBOX format you could 'cat /some/mailbox | formail -s | procmail -m /some/recipefile'.
 
Old 09-25-2008, 03:15 AM   #3
kuangchen
LQ Newbie
 
Registered: Jan 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Problem solved. Thanks, unSpawn!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Procmail: forwarding mail to remote mail account Cadmium Linux - Software 2 01-14-2010 02:05 PM
postfix wont process mail through procmail Red Squirrel Linux - Software 2 07-02-2006 01:49 PM
LXer: Process your email with procmail LXer Syndicated Linux News 0 04-14-2006 09:03 AM
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 06:04 AM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 08:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration