Solved

looking for a unix program to handle email

Posted on 2001-07-20
4
168 Views
Last Modified: 2013-12-25
I am looking for a program, most likely in PERL that will retrieve the contents of an email pop box, parse the email messages and store them in a database.

The object is to capture incoming emails to a particular address and store the "from" address in a database driven list server. Next the original emails would be forwarded to any desired address.

This may sound a bit too customized for there to be a pre-existing solution. In that case any programming ideas or references would be appreciated.

Thanks for focusing your formidable mental powers in my direction.
0
Comment
Question by:takoau
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 6304375
use Mail::POP3Client;  #or use Net::POP3
use Mail::Procmail;    #or use Mail::Audit;
0
 
LVL 3

Expert Comment

by:rag2000
ID: 6312115
< listening... >
0
 
LVL 2

Accepted Solution

by:
curri earned 75 total points
ID: 6320632
It seems there is an easy way (but maybe you want more).

1. If the e-mail account is a standard shell account, add a .forward file to it, with 2 lines. One will be the address you want the e-mails to be forwarded too, and the other one a pipe to a command (say get-addresses; so you'd write "| get-addresses", but with the complete path :)

This means you intercept the message as it comes, do not need to do pop3 download.

2. The get_addresses command gets the whole e-mail as its input. Then it needs to select just the from line, right ? something like:
 grep "^From:" >> addresses

Now all the e-mail addresses get added to the file called addresses.
0
 

Author Comment

by:takoau
ID: 6321338
Thanks Curry, I ended up finding a prewritten program for this, and this is the way they do it. Great call.

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question