[Mailman-Users] Admin (un)subscribe via wget or email w/out confirms

Mark Sapiro msapiro at value.net
Mon Dec 6 01:51:42 CET 2004


Steven Poulakos wrote:

>Mark, thanks so much for the info below!  Is there any documentation 
>related to this?  I'd be interested to know what other actions are 
>possible using similar commands?  For example, how can I control 
>notifications when unsubscribing (as done below)?


I'm not aware of any documentation per se. The adminpw=[admin_password]
is common to all the http://[domain.name]/mailman/admin/[listname]/
scripts. Beyond that, the simplest thing is just to look at the HTML
source for the actual page and see what variables are sent back with
the form and set those. Looking at the actual Python scripts in
Mailman/Cgi and Mailman/Gui can help determine defaults. For example,
in the mass subscribe URI below, it isn't necessary to set
subscribe_or_invite because the default is subscribe.

You can't control notifications when unsubscribing with the "options"
URI below, because there is no e-mail notification from this
unsubscribe. You could use the admin mass unsubscribe page with
something like

http://[domain.name]/mailman/admin/[listname]/members/remove?adminpw=[admin_password]&unsubscribees=[user_email_address]

and then you could use send_unsub_ack_to_this_batch and
send_unsub_notifications_to_list_owner to control notification.

--
Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
>
>Mark Sapiro wrote:
>
>>Steven Poulakos wrote:
>>  
>>
>>>My current problem is figuring out how to allow an admin to subscribe a 
>>>user's email *without requiring the user to confirm* the subscription.  
>>>Is there any way to do this with admin email commands or web scripts?
>>>
>>>The unsubscribe feature works using the following wget command:
>>>
>>>http://[domain.name]/mailman/options/[listname]/[user_email_address]?unsub=1&unsubconfirm=1&password=[admin_password]
>>>
>>>That command will unsubscribe the user without a confirmation request.  
>>>Does something comparable exist for subscriptions?
>>>    
>>>
>>
>>http://[domain.name]/mailman/admin/[listname]/members/add?subscribees=[user_email_address]&adminpw=[admin_password]&send_welcome_msg_to_this_batch=0&send_notifications_to_list_owner=0
>>
>>You may or may not want
>>send_welcome_msg_to_this_batch=0
>>and/or
>>send_notifications_to_list_owner=0
>>depending on whether or not you want the welcome message and/or owner
>>notification.
>>
>>--
>>Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
>>San Francisco Bay Area, California    better use your sense - B. Dylan




More information about the Mailman-Users mailing list