Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Call Perl via email

by gnosti (Hermit)
on Aug 04, 2011 at 08:07 UTC ( #918460=note: print w/replies, xml ) Need Help??


in reply to Call Perl via email

Here is a way to do it without procmail using Email::Filter and a sendmail interface such as Email::Sender.

In ~/.forward

| filter_mail

In ~/bin/filter_mail

use Email::Filter; my $mail = Email::Filter->new(emergency => "~/emergency_mbox"); $mail->accept("$ENV{HOME}/Mail/new") unless $mail->subject =~ /magic_k +eyword/; # usually exit here send_mail(); sub send_mail { # see docs for Email::Sender }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://918460]
help
Chatterbox?
[james28909]: i found a demo in the PDK samples, and it works there, so just need to figure out what im doing wrong.

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2017-07-28 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (430 votes). Check out past polls.