[Mailman-Users] Issue approving subscription requests

Mark Sapiro mark at msapiro.net
Tue Apr 29 23:49:28 CEST 2014


On 04/29/2014 11:45 AM, Murray S. Kucherawy wrote:
> What about managing subscription requests?


This script will do those too.

>     See the script at <http://www.msapiro.net/scripts/list_requests>.


The following won't work for (un)subscription because the notice to the
admin doesn't contain the confirm message/token.

>     Also, if you set admin_immed_notify to yes, the notice to the admin has
>     three MIME parts. part 1 is the held post notice; part 2 is the held
>     post itself, and part 3 is another message/rfc822 part which can be
>     'replied' to by email. If you simply reply to this message, to original
>     post will be discarded, but if you include an 'Approved: password'
>     header (or first body line pseudo header) in the reply, the post will be
>     accepted. In the header, password is the list admin or moderator
>     password or the (new in 2.1.15) poster password.
> 
>     See the Passwords section of the admin interface, although you'll
>     probably not be able to set the poster password for the same reason you
>     can't approve posts, but you can always set it with config_list with
>     input
> 
>     post_password = 'desired_pw_value'


And the above won't work either. The file contents need to be

from Mailman.Utils import sha_new
post_password = sha_new('desired_pw_value').hexdigest()
del sha_new

I forgot that config_list won't do the encryption. Also, the 'del
sha_new' line isn't mandatory, but omitting it will result in an
'attribute "sha_new" ignored' warning from config_list.

-- 
Mark Sapiro <mark at msapiro.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