diff options
author | Mark Sapiro <mark@msapiro.net> | 2008-06-20 16:20:18 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2008-06-20 16:20:18 -0700 |
commit | 04cff960b15dd31ce6200abdff6fc57df2526146 (patch) | |
tree | ad66f7a4b5e5e7104905549b9610c05489302adc | |
parent | fb79444a20297f9a98c1e515527de757e00cda56 (diff) | |
download | mailman2-04cff960b15dd31ce6200abdff6fc57df2526146.tar.gz mailman2-04cff960b15dd31ce6200abdff6fc57df2526146.tar.xz mailman2-04cff960b15dd31ce6200abdff6fc57df2526146.zip |
Changed OldStyleMemberships.py to remove the member from one_last_digest
when changing from regular to digest delivery to avoid the possibility
of a duplicate digest in some circumstances.
-rw-r--r-- | Mailman/OldStyleMemberships.py | 8 | ||||
-rw-r--r-- | NEWS | 4 |
2 files changed, 11 insertions, 1 deletions
diff --git a/Mailman/OldStyleMemberships.py b/Mailman/OldStyleMemberships.py index f28c08db..d50bc62f 100644 --- a/Mailman/OldStyleMemberships.py +++ b/Mailman/OldStyleMemberships.py @@ -1,4 +1,4 @@ -# Copyright (C) 2001-2007 by the Free Software Foundation, Inc. +# Copyright (C) 2001-2008 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -292,6 +292,12 @@ class OldStyleMemberships(MemberAdaptor.MemberAdaptor): raise Errors.NotAMemberError, member del self.__mlist.members[memberkey] self.__mlist.digest_members[memberkey] = cpuser + # If we recently turned off digest mode and are now + # turning it back on, the member may be in one_last_digest. + # If so, remove it so the member doesn't get a dup of the + # next digest. + if self.__mlist.one_last_digest.has_key(memberkey): + del self.__mlist.one_last_digest[memberkey] else: # Be sure the list supports regular delivery if not self.__mlist.nondigestable: @@ -70,6 +70,10 @@ Here is a history of user visible changes to Mailman. - Fixed CookHeaders.py which in some cases with new style prefixing would insert an extra space between the prefix and the subject. + - Changed OldStyleMemberships.py to remove the member from one_last_digest + when changing from regular to digest delivery to avoid the possibility + of a duplicate digest in some circumstances. + Miscellaneous - Brad Knowles' mailman daily status report script updated to 0.0.18. |