Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

What're some good ways of notifying a perl script of an incoming email?

by ApoxyButt (Initiate)
on May 09, 2002 at 14:57 UTC ( [id://165391]=perlquestion: print w/replies, xml ) Need Help??

ApoxyButt has asked for the wisdom of the Perl Monks concerning the following question: (mail and news)

Assume I have access to the major email programs.

Originally posted as a Categorized Question.

  • Comment on What're some good ways of notifying a perl script of an incoming email?

Replies are listed 'Best First'.
Re: What're some good ways of notifying a perl script of an incoming email?
by vagnerr (Prior) on May 09, 2002 at 15:39 UTC
    If you are Unix based, I would definatly recomend that you look at procmail. (man "procmail" or "procmailrc")
Re: What're some good ways of notifying a perl script of an incoming email?
by tye (Sage) on May 09, 2002 at 16:56 UTC
    The typical solution is to put | myPerlScript in your .forward file. However, this feature is often disabled because of its power and ease of abuse.
Re: What're some good ways of notifying a perl script of an incoming email?
by superfrink (Curate) on Dec 29, 2004 at 08:43 UTC
    tye pointed out the .forward file. I don't believe qmail uses that file. Instead the ~/.qmail file gets used. See the dot-qmail man page for details about the .qmail file. Read the man page because your program's exit codes are important to qmail. My /home/frink/.qmail file looks like this:
    | /home/frink/scripts/email-spam-keywords.pl ./Mailbox
Re: What're some good ways of notifying a perl script of an incoming email?
by solszew (Initiate) on Nov 23, 2002 at 00:42 UTC
    If you use sendmail, you can build a perl milter - look at the source code for "mimedefang", or visit www.milter.org for details regarding milters in general.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://165391]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-23 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found