diff options
| author | bwarsaw | 2001-10-15 23:48:32 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-10-15 23:48:32 +0000 |
| commit | 4ead76bb34f045e957b02a3a0f227359a02ce0af (patch) | |
| tree | 456a831b8e261a28cba4c40c7229387d262f7050 | |
| parent | df0fb75639c097d89c40c42ac94361e397ff6b0c (diff) | |
| download | mailman-4ead76bb34f045e957b02a3a0f227359a02ce0af.tar.gz mailman-4ead76bb34f045e957b02a3a0f227359a02ce0af.tar.zst mailman-4ead76bb34f045e957b02a3a0f227359a02ce0af.zip | |
| -rw-r--r-- | Mailman/ListAdmin.py | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py index 2ef5d1491..b3215a86d 100644 --- a/Mailman/ListAdmin.py +++ b/Mailman/ListAdmin.py @@ -29,6 +29,7 @@ import marshal import errno import cPickle import email +from email.MIMEMessage import MIMEMessage from cStringIO import StringIO from Mailman import mm_cfg @@ -263,7 +264,6 @@ class ListAdmin: assert value == mm_cfg.DISCARD # Discarded rejection = 'Discarded' - # # Forward the message if forward and addr: # If we've approved the message, we need to be sure to craft a @@ -275,15 +275,12 @@ class ListAdmin: except IOError, e: if e.errno <> errno.ENOENT: raise raise Errors.LostHeldMessage(path) - # We don't want this message getting delivered to the list twice. - # This should also uniquify the message enough for the hash-based - # file naming (not foolproof though). - del copy['resent-to'] - copy['Resent-To'] = addr - virginq = get_switchboard(mm_cfg.VIRGINQUEUE_DIR) - virginq.enqueue(copy, listname=self.internal_name(), - recips=[addr]) - # + fmsg = Message.UserNotification(addr, + self.GetAdminEmail(), + _('Forward of moderated message')) + fmsg.add_header('Content-Type', 'message/rfc822') + fmsg.add_payload(copy) + fmsg.send(self) # Log the rejection if rejection: note = '''%(listname)s: %(rejection)s posting: |
