Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Triggering a script via email...continued

by sfink (Deacon)
on Apr 19, 2002 at 20:28 UTC ( [id://160658]=note: print w/replies, xml ) Need Help??


in reply to Triggering a script via email...continued

Can you use a .forward file? You should be able to set up a pipe there.
  • Comment on Re: Triggering a script via email...continued

Replies are listed 'Best First'.
Re: Re: Triggering a script via email...continued
by jerrygarciuh (Curate) on Apr 19, 2002 at 21:46 UTC
    This is very good news! I set up a .forward just forwarding all mail and it works. I have googled around and have not yet found syntax for pipe in a .forward. Can you help me with that?
    TIA
    jg
    _____________________________________________________
    Think a race on a horse on a ball with a fish! TG
      have not yet found syntax for pipe in a .forward. Can you help me with that?

      When ever I leave the office for a long time, I install a .forward file that both keeps a copy in my mail spool file and also pipes it through an autoreply "I'm not here" process.

      To do that, the .forward file looks like this:

      \graff, "|/usr/bin/vacation graff"
      I'm not sure what will happen if the process crashes. I do know that if the mode on .forward isn't rw-r--r--, my mail server will bounce all mail sent to graff, 'cuz any other mode is either unworkable or a nasty security no-no. I'm not sure, but I might expect it to look up the pipeline process too, to make sure it's not an open door.

      (Presumably, if I only want the mail to go to the process, I just leave off the first part of the line.)

      As you can probably infer from graff's post, the trick is to quote the pipe command. Here's an old .forward of mine:"| /usr/lib/nmh/slocal -user sfink" But the exact syntax is really up to the MTA. This should work with sendmail.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-19 05:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found