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 <[email protected]>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

=== modified file 'Mailman/Cgi/admin.py'
--- Mailman/Cgi/admin.py        2010-09-10 22:17:01 +0000
+++ Mailman/Cgi/admin.py        2011-04-14 23:07:45 +0000
@@ -187,13 +187,15 @@
         if not mlist.digestable and mlist.getDigestMemberKeys():
             doc.addError(
                 _('''You have digest members, but digests are turned
-                off. Those people will not receive mail.'''),
+                off. Those people will not receive mail.
+                Affected member(s) %r.''' % 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: '))
+                fix this problem. Affected member(s) %r.''' %
+                mlist.getRegularMemberKeys()), tag=_('Warning: '))
         # Glom up the results page and print it out
         show_results(mlist, doc, category, subcat, cgidata)
         print doc.Format()

------------------------------------------------------
Mailman-Users mailing list [email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to