diff options
| author | bwarsaw | 2006-07-08 17:45:13 +0000 |
|---|---|---|
| committer | bwarsaw | 2006-07-08 17:45:13 +0000 |
| commit | 0e9fb0aec9fcf0027dd354b48196b1fa0d420c4d (patch) | |
| tree | f63ad44589e00c13e92cf0e83461ecb22dc5aeff /Mailman/Handlers/AvoidDuplicates.py | |
| parent | cbef3114de3e80b9436d909b11568858e3a1cf42 (diff) | |
| download | mailman-0e9fb0aec9fcf0027dd354b48196b1fa0d420c4d.tar.gz mailman-0e9fb0aec9fcf0027dd354b48196b1fa0d420c4d.tar.zst mailman-0e9fb0aec9fcf0027dd354b48196b1fa0d420c4d.zip | |
Diffstat (limited to 'Mailman/Handlers/AvoidDuplicates.py')
| -rw-r--r-- | Mailman/Handlers/AvoidDuplicates.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Mailman/Handlers/AvoidDuplicates.py b/Mailman/Handlers/AvoidDuplicates.py index 24686bb8d..3aa4936b5 100644 --- a/Mailman/Handlers/AvoidDuplicates.py +++ b/Mailman/Handlers/AvoidDuplicates.py @@ -12,7 +12,8 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +# USA. """If the user wishes it, do not send duplicates of the same message. @@ -23,7 +24,7 @@ warning header, or pass it through, depending on the user's preferences. """ from email.Utils import getaddresses, formataddr -from Mailman import mm_cfg +from Mailman.configuration import config COMMASPACE = ', ' @@ -67,7 +68,7 @@ def process(mlist, msg, msgdata): # is not a member at all, just flag the X-Mailman-Duplicate: yes # header. if mlist.isMember(r) and \ - mlist.getMemberOption(r, mm_cfg.DontReceiveDuplicates): + mlist.getMemberOption(r, config.DontReceiveDuplicates): send_duplicate = False # We'll send a duplicate unless the user doesn't wish it. If # personalization is enabled, the add-dupe-header flag will add a |
