diff options
| author | Barry Warsaw | 2007-10-10 00:16:12 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2007-10-10 00:16:12 -0400 |
| commit | 15f9e73fdb96a145632e5916cc0073472c014c99 (patch) | |
| tree | d5bf1b81d4945e20586d17a5bd2002c8ce6d986c /Mailman/queue/news.py | |
| parent | 28f41bc768390f11cf817534cca67a1683f235a7 (diff) | |
| download | mailman-15f9e73fdb96a145632e5916cc0073472c014c99.tar.gz mailman-15f9e73fdb96a145632e5916cc0073472c014c99.tar.zst mailman-15f9e73fdb96a145632e5916cc0073472c014c99.zip | |
Diffstat (limited to 'Mailman/queue/news.py')
| -rw-r--r-- | Mailman/queue/news.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Mailman/queue/news.py b/Mailman/queue/news.py index 1ed58dc0c..14bb24173 100644 --- a/Mailman/queue/news.py +++ b/Mailman/queue/news.py @@ -30,6 +30,7 @@ COMMASPACE = ', ' from Mailman import Utils from Mailman.configuration import config +from Mailman.interfaces import NewsModeration from Mailman.queue import Runner log = logging.getLogger('mailman.error') @@ -92,9 +93,10 @@ def prepare_message(mlist, msg, msgdata): # software to accept the posting, and not forward it on to the n.g.'s # moderation address. The posting would not have gotten here if it hadn't # already been approved. 1 == open list, mod n.g., 2 == moderated - if mlist.news_moderation in (1, 2): + if mlist.news_moderation in (NewsModeration.open_moderated, + NewsModeration.moderated): del msg['approved'] - msg['Approved'] = mlist.GetListEmail() + msg['Approved'] = mlist.posting_address # Should we restore the original, non-prefixed subject for gatewayed # messages? TK: We use stripped_subject (prefix stripped) which was # crafted in CookHeaders.py to ensure prefix was stripped from the subject |
