[Mailman-Users] Disallow digest, but getting warning

Mark Sapiro mark at msapiro.net
Fri Apr 15 01:32:26 CEST 2011


On 4/14/2011 4:40 AM, Ralf Hildebrandt wrote:
>>
>> I patched mailman to emit that info.
>> m(
> 
> --- /usr/src/mailman-2.1.14/Mailman/Cgi/admin.py	2010-12-02 08:41:27.000000000 +0100
> +++ /usr/src/mailman-2.1.14/Mailman/Cgi/admin.py	2011-04-14 13:34:53.533844622 +0200
> @@ -189,11 +189,15 @@
>                  _('''You have digest members, but digests are turned
>                  off. Those people will not receive mail.'''),
>                  tag=_('Warning: '))
> +            doc.addError(mlist.getDigestMemberKeys(),
> +                tag=_('Warning: '))
>          if not mlist.nondigestable and mlist.getRegularMemberKeys():
>              doc.addError(
>                  _('''You have regular list members but non-digestified mail is
>                  turned off.  They will receive non-digestified mail until you
>                  fix this problem.'''), tag=_('Warning: '))
> +            doc.addError(mlist.getRegularMemberKeys(),
> +                tag=_('Warning: '))
>          # Glom up the results page and print it out
>          show_results(mlist, doc, category, subcat, cgidata)
>          print doc.Format()


See <https://bugs.launchpad.net/mailman/+bug/761232>. My patch is a bit
different, see attached, but the intent is the same.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://mail.python.org/pipermail/mailman-users/attachments/20110414/5abbb544/attachment.txt>


More information about the Mailman-Users mailing list