LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-15-2005, 03:10 PM   #1
RedHat123
Member
 
Registered: Dec 2001
Posts: 60

Rep: Reputation: 15
question for perl coders


how hard would it be to write a perl script to do the following:
(1)read a mailbox and parse subject lines for a keyword and number
(2)upon finding a keyword match, lookup the email address of the sender and compare that a record exists to match the number in the subject line for the email address of the sender
(3) if a match is found for this number/sender email combination,
issue a sql statement to a mysql db to update a record given a set of conditions similar to above
 
Old 04-15-2005, 03:33 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It should be fairly easy - there are plenty of modules on cpan that will read mailboxes of just about any type:
http://search.cpan.org
 
Old 04-15-2005, 03:58 PM   #3
puffinman
Member
 
Registered: Jan 2005
Location: Atlanta, GA
Distribution: Gentoo, Slackware
Posts: 217

Rep: Reputation: 31
Ditto for mysql modules. Pick the right modules and the whole script would probably be only a few lines.
 
Old 04-15-2005, 04:31 PM   #4
RedHat123
Member
 
Registered: Dec 2001
Posts: 60

Original Poster
Rep: Reputation: 15
ok, now that ive started perusing a few perl tutorials, i dont think it will be that bad. im comfortable with php & java but ive never had the need till now to do more than recognize perl scripts when i see them. thanks for the help
 
  


Reply



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
Hiding code in PERL, perl gui question randomx Programming 1 06-26-2004 03:22 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM
Insanity. Coders are weird people (= TheLinuxDuck Programming 6 07-16-2003 02:32 PM
coders on emacs, check this one out ... Tinkster Linux - Software 4 05-15-2003 02:33 AM
Java coders? AMDPwred Programming 3 12-31-2002 12:22 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:15 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