Mombu the GNU Linux Forum sponsored links

Go Back   Mombu the GNU Linux Forum > GNU_Linux > Script for subscribung/unsubscribing Debian-user?
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 17th June 02:58
andreas von heydwolff
External User
 
Posts: 1
Default Script for subscribung/unsubscribing Debian-user?



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.

-- AvH


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Reply With Quote


  sponsored links


2 18th June 00:56
karsten m. self
External User
 
Posts: 1
Default Script for subscribing/unsubscribing Debian-user?



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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/2txLefG8443k044RArHWAJ9+jt0hUPYhkL32+h39USAP2ojkyw CfQjbB
QPjysQLdcIh1wrQJSjWi+XI=
=IPeK
-----END PGP SIGNATURE-----
  Reply With Quote
3 18th June 12:54
clive standbridge
External User
 
Posts: 1
Default Script for subscribung/unsubscribing Debian-user?


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##*/} debian-${x}-request@lists.debian.org)
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 debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Reply With Quote
4 19th June 00:48
andreas von heydwolff
External User
 
Posts: 1
Default Script for subscribing/unsubscribing Debian-user?


Thanks - that's just what I was imagining!

Cheers,

-- AvH


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666