[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help/subscribe



According to Martin Janzen:
> 
> Since you mention stdin, I assume you're running UNIX.  In that case, it's
> very easy to do this using awk; no C programming required.
> 
> 
> Now, just wrap it in a shell script which responds with an appropriate
> message (you can of course have subscribe.awk return a different exit
> code depending on which regular expression is matched), and call the
> shell script from your $HOME/.forward file, mail filter, or whatever.

Gak!  Use procmail!  I'm working on such a beast now.  You can use regular
expressions and it gets executed when you get the email.  Even better, you
never have to see the incoming message if you don't want to.

my $.02


J. Michael Diehl   ;^)  |*The 2nd Amendment is there in case the 
[email protected]   | Government forgets about the 1st!  <RL>
[email protected]  |*God is a good Physicist, and an even 
    .fidonet.org        | better Mathematician.  <Me>
[email protected]|*I'm just looking for the opportunity to 
 (505) 299-2282 (voice) | be Politically Incorrect! <Me>
Can we impeach him yet? |*Protected by 18 USC 2511 and 18 USC 2703.