Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-31-2004, 01:26 PM   #1
LQ Newbie
Registered: Oct 2004
Posts: 2

Rep: Reputation: 0
How to send email to a file for parsing

Im working through and have some linux/scripting knowledge

I have an email address set up. I want to send any email that comes to there to a text file to be parsed (ie with a python script or something).

Whats the best way to go about this?
Old 10-31-2004, 04:17 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Can you set up a .forward file for the account, I think if you put:

"> name_of_file"

into your .forward, that should do the trick. You could also just parse the mail spool folder directly, or pipe the message to a program (by putting "| name_of_program" in the .forward file). This assumes Sendmail as the MTA, but should work with everything else (I think qmail requires a special added package installed to handle .forward files).


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
email 'send' NO - email 'receive' YES..? captain skywave Linux - Wireless Networking 4 04-23-2005 04:35 AM
email 'send' YES - email 'receive' NO..? captain skywave Linux - Wireless Networking 1 04-22-2005 06:23 AM
bash script, parsing email addresses kepler Programming 6 01-26-2004 07:47 AM
Allowing an IP to send email using my email server... culprit Linux - Networking 7 09-09-2003 01:24 PM
Parsing email... not sure where to begin. TruckStuff Linux - Networking 1 09-30-2002 10:54 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:44 AM.

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