[Mailman-Users] Mass Subscription - setting digest as default
Freedom_Lover at pobox.com
Sat Feb 8 06:43:41 CET 2003
-----BEGIN PGP SIGNED MESSAGE-----
Matthew Davis wrote:
> I'm confirming this on my installation too. Using mailman 2.1.
> Set digest_is_default to digest then went to the mass-subscribe and none of
> the members were subscribed as digest members.
Let me preface this by saying that I am *not* a python hacker nor do I know
Mailman all that well... but I was curious.
In ~mailman/Mailman/Cgi/admin.py, there's a method, change_options, which
appears to handle the mass subscribe. In that method, at line 1237, digest
is set to 0. Looking at similar code in ~mailman/Mailman/Cgi/subscribe.py,
digest is set to mlist.digest_is_default. That seemed like a reasonable
thing to use in change_options so I tried it and it appears to work. I
<sarcasm>thoroughly</sarcasm> tested this patch for all of 10 minutes. :-)
- --- Mailman/Cgi/admin.py.org Sat Feb 8 00:31:14 2003
+++ Mailman/Cgi/admin.py Sat Feb 8 00:29:52 2003
@@ -1234,7 +1234,7 @@
# Default is to subscribe
subscribe_or_invite = safeint('subscribe_or_invite', 0)
invitation = cgidata.getvalue('invitation', '')
- - digest = 0
+ digest = mlist.digest_is_default
if not mlist.digestable:
digest = 0
if not mlist.nondigestable:
I'm actually just curious to see if I'm on the right track here, so you'd be
wise to wait for Barry or another knowledgeable Mailman and/or Python hacker
to post a proper fix. ;)
Todd OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
I used to think the brain was the most advanced part of the body. Then I
realized, look what's telling me that.
-- Emo Phillips
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.
-----END PGP SIGNATURE-----
More information about the Mailman-Users