LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 09-24-2008, 02: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, 01:12 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 21,610
Blog Entries: 47

Rep: Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413
With MBOX format you could 'cat /some/mailbox | formail -s | procmail -m /some/recipefile'.
 
Old 09-25-2008, 02: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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 03:23 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration