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/Acknowledge.py | |
| parent | cbef3114de3e80b9436d909b11568858e3a1cf42 (diff) | |
| download | mailman-0e9fb0aec9fcf0027dd354b48196b1fa0d420c4d.tar.gz mailman-0e9fb0aec9fcf0027dd354b48196b1fa0d420c4d.tar.zst mailman-0e9fb0aec9fcf0027dd354b48196b1fa0d420c4d.zip | |
Diffstat (limited to 'Mailman/Handlers/Acknowledge.py')
| -rw-r--r-- | Mailman/Handlers/Acknowledge.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Mailman/Handlers/Acknowledge.py b/Mailman/Handlers/Acknowledge.py index dc8175773..e974844c1 100644 --- a/Mailman/Handlers/Acknowledge.py +++ b/Mailman/Handlers/Acknowledge.py @@ -1,18 +1,19 @@ -# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2006 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 # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # 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. +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +# USA. """Send an acknowledgement of the successful post to the sender. @@ -22,10 +23,10 @@ to send acks only after successful delivery. """ -from Mailman import mm_cfg -from Mailman import Utils -from Mailman import Message from Mailman import Errors +from Mailman import Message +from Mailman import Utils +from Mailman.configuration import config from Mailman.i18n import _ @@ -34,7 +35,7 @@ def process(mlist, msg, msgdata): # Extract the sender's address and find them in the user database sender = msgdata.get('original_sender', msg.get_sender()) try: - ack = mlist.getMemberOption(sender, mm_cfg.AcknowledgePosts) + ack = mlist.getMemberOption(sender, config.AcknowledgePosts) if not ack: return except Errors.NotAMemberError: |
