on Fri, Dec 12, 2003 at 11:57:05PM +0100, Andreas von Heydwolff (pirmin2@gmx.net) 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?
>
> Not that it is all too much work via the web page, but typing a small
> command that does it all in a jiffy before leaving town for a week or
> while unpacking the bag upon one's return would be nice.
There _are_ the bulk-action pages:
http://www.debian.org/MailingLists/subscribe
http://www.debian.org/MailingLists/unsubscribe
Otherwise, a sketch of a bash script:
--------------------------------------------------------------------
#!/bin/bash
# Bulk actions on mailing lists (using MajorSmart syntax)
# Pick an appropriate action. See:
# http://www.infodrom.org/projects/majorsmart/
ACTION='subscribe'
# ACTION='unsubscribe'
# example of lists, change to suit
LISTS="debian-user debian-devel debian-security
for LIST in $LISTS
do
echo "$LIST: $ACTION"
echo "$ACTION" |
mutt -s "$ACTION" $LIST-request@lists.debian.org
done
--------------------------------------------------------------------
You'd still need to respond to the verification messages later, possibly
via a procmail rule, though I'd discourage this.
While you don't need a body on the mail, I find it can be a useful
mnemonic.
Peace.
--
Karsten M. Self <kmself@ix.netcom.com> http://kmself.home.netcom.com/
What Part of "Gestalt" don't you understand?
And what do I get? A one-way ticket to Palookaville"
- M. Brando
Attachment:
pgpfHQOd1en_c.pgp
Description: PGP signature