[Mailman-Users] Changing parameters for one [or many] users from the command line
Mark Sapiro
mark at msapiro.net
Thu May 22 22:41:19 CEST 2014
On 05/22/2014 07:34 AM, Bernie Cosell wrote:
> On 21 May 2014 at 20:03, Mark Sapiro wrote:
>
> Alas, I only need to mess with 80 out of 400. BUT in this case setting
> them *all* to "mail" [i.e., not-nomail] would be OK, so I'll look at
> withlist...
You might also look at Mailman's bin/list-members --nomail= command to
list the members you're interested in.
>> Also, nomail is handled differently. Here you'd need
>>
>> from Mailman import MemberAdaptor
>>
>> at the beginning of your script and
>>
>> mlist.setDeliveryStatus(member, MemberAdaptor.BYADMIN)
>>
>> to set nomail by admin. There's a script at
>> <http://www.msapiro.net/scripts/set_nomail.py> that sets nomail, but
>> it
>> probably has more options than you need.
>
> How would you clear nomail?
mlist.setDeliveryStatus(member, MemberAdaptor.ENABLED)
> Because that looks OK if it does just one
> member. I can easily whip up a shell script to generate the .py file
> with the commands for the 80 members I need to tweak.
Also, see the script at
<http://www.msapiro.net/scripts/reset_bounce.py>. I could be more
specific with my advice if I knew exactly what you want to do.
--
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