On Fri 12 Dec 2003 23:57:05 +0000(+0100), Andreas von Heydwolff wrote:
> Just wondering - is it possible to write a script for mailing a few 
> initial subscribe or unsubscribe messages for one's favorite lists to 
> the server managing the listmembers or does this process depend on the 
> web page/cgi or whatever?

Something like this?

Create a file called subscribe containing, with lists set to taste:

        #!/bin/bash
        lists='user cd security-announce'       # (for example)
        for x in $lists
        do
                echo | (set -x; mail -s ${0##*/} [EMAIL PROTECTED])
        done


Then do
        chmod +x subscribe
        ln -s subscribe unsubscribe

To unsubscribe do
        ./unsubscribe
To re-subscribe do
        ./subscribe

NB mail is in the mailx package. Substitute mutt for mail if you prefer.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to