1993-10-28 - Re: help/subscribe

Header Data

From: J. Michael Diehl <mdiehl@triton.unm.edu>
To: janzen@idacom.hp.com (Martin Janzen)
Message Hash: 2344b0842945820d833d60811244b18d2e33620493a4b11788fb3927a287a10a
Message ID: <9310280131.AA22048@triton.unm.edu>
Reply To: <9310280017.AA06037@loki.idacom.hp.com>
UTC Datetime: 1993-10-28 01:32:41 UTC
Raw Date: Wed, 27 Oct 93 18:32:41 PDT

Raw message

From: J. Michael Diehl <mdiehl@triton.unm.edu>
Date: Wed, 27 Oct 93 18:32:41 PDT
To: janzen@idacom.hp.com (Martin Janzen)
Subject: Re: help/subscribe
In-Reply-To: <9310280017.AA06037@loki.idacom.hp.com>
Message-ID: <9310280131.AA22048@triton.unm.edu>
MIME-Version: 1.0
Content-Type: text/plain


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 
mdiehl@triton.unm.edu   | Government forgets about the 1st!  <RL>
Mike.Diehl@f29.n301.z1  |*God is a good Physicist, and an even 
    .fidonet.org        | better Mathematician.  <Me>
al945@cwns9.ins.cwru.edu|*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. 




Thread