Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: call a script via an email

by frankus (Priest)
on Jun 13, 2002 at 14:18 UTC ( #174211=note: print w/replies, xml ) Need Help??

in reply to call a script via an email

A little more detail is needed here:
  • Platform
  • MTA

You know all the petty stuff, we allow to distract us from the real problem ;)
I'd use procmail and formail on a debian box :
# Procmail recipe... lookaway. :0: * Sender:.* `formail -I"" |perl` # End of recipe.

# Cheesy Perl code fragment. while(<>){ chomp; next unless /^command:/; my $command = $'; next if $command =~ /(:?kill -9)|(?:halt)|(?:fsck)/; system( $command ); }

Something like that anyway.
More importantly look at PGP verification of sender,
we wouldn't want people spoofing emails to the address.

Alternatively try search cpan, category mail


Brother Frankus.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://174211]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2016-10-27 08:02 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (355 votes). Check out past polls.