LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-23-2007, 02:26 PM   #1
Geneset
Member
 
Registered: Jan 2007
Location: Athlone, ROI
Distribution: Ubuntu Hardy Desktop, Solaris 10, Workstation 2008 x64
Posts: 75

Rep: Reputation: 16
Parsing Email Data


Hi. I'm looking for a relativly simple way to automatically parse recieved emails with a subject string and take out the body text (a URL), and wget it to a directory. Whats the best type of script of application to use for this? Thanks
 
Old 07-23-2007, 05:31 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Incoming mail usually gets processed and distributed by 'procmail'. It uses a configuration file which consists of one or more 'recipes', or routing based on about anything you like. Personally I would let Procmail only do the grepping and handing over the result and let an external script do any further processing. It minimises the time Procmail spends processing (speed) and it allows you to manage / minimise risks by having it run under an unprivileged ID and introducing checks in the external script you wouldn't do in a procmail recipe.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
parsing data - better way of doing that kshkid Programming 10 01-08-2007 06:05 AM
Parsing rows and column data from a file using perl dav_y2k Programming 1 10-08-2006 11:57 AM
How to send email to a file for parsing archaegeo Linux - Newbie 1 10-31-2004 03:17 PM
bash script, parsing email addresses kepler Programming 6 01-26-2004 06:47 AM
Parsing email... not sure where to begin. TruckStuff Linux - Networking 1 09-30-2002 09:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:47 AM.

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
Open Source Consulting | Domain Registration