procmail
[Top] [All Lists]

Re: auto subscription

1996-05-08 01:43:16
-----BEGIN PGP SIGNED MESSAGE-----

On Tue, 7 May 1996, Gino Filicetti wrote:

What procmail would have to do is grab the sender's adddress first of all,
then grab the sender's real name on the subject line (the subject syntax
would be "coc subscribe Dr. X"), now one problem would be grabbing any
names with space in them, but I guess $MATCH could be used to grab
everything after "coc subscribe " right?

Yes. Try something like:
:0bc
* coc subscribe \/.*$
{ NAME=$MATCH }

Get the address with:
:0ch
FROM_ADDRESS=| formail -r -xTo:

Now after we have the email address of this person, and their real name,
(if no name was used, we'd use their email address as their name).. we
have to send a message to <listproc(_at_)lists(_dot_)colorado(_dot_)edu> with 
a body that
reads...

ADD COC-ZINE mypasswordhere drx(_at_)foo(_dot_)bar(_dot_)edu Dr. X

A first guess to put you on the right track:
:0ib
| echo "ADD COC-ZINE" mypasswordhere $FROM_ADDRESS $NAME"

:A
! listproc(_at_)lists(_dot_)colorado(_dot_)edu

- --
Guy Geens <guy(_dot_)geens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be>: Ph.D. 
student at ELIS -- TFCG / IMEC 
Home Page: http://www.elis.rug.ac.be/ELISgroups/tfcg/staff/gg.html 
finger ggeens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be for PGP public keys (or use 
keyserver) 

The feel of the action is far behind.
The fruit of the action has nailed you down,
Dragged you down!
Sealing up reaction overwhelms your conscience,
Leads to more diversion, and pulls you down.
Coming to attention, going through the tension,
Praying for the sanction, you're fading out



-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: pgp fingerprints in message headers

iQBVAwUBMZBbgnwHoCha5QR1AQHNewIAwld31s9m/jQ85TKYbNp7mrhPMXwj4tmp
OnB0QsJLQKJ9bGV+/7uUq3RpIolj78PL4lJplbsXo2TeBa2pjZTfPQ==
=ldUH
-----END PGP SIGNATURE-----

<Prev in Thread] Current Thread [Next in Thread>