diff options
| author | bwarsaw | 2001-09-05 03:43:00 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-09-05 03:43:00 +0000 |
| commit | 5a823e7a77d7877e6f29a7e11e95cb158236ca51 (patch) | |
| tree | f3aea1cc51184d69ea733c23248bdd5eeeb03a1f /Mailman/ListAdmin.py | |
| parent | c169d6ea67b03841f2bd034de4d36aca6bc2c7b7 (diff) | |
| download | mailman-5a823e7a77d7877e6f29a7e11e95cb158236ca51.tar.gz mailman-5a823e7a77d7877e6f29a7e11e95cb158236ca51.tar.zst mailman-5a823e7a77d7877e6f29a7e11e95cb158236ca51.zip | |
Diffstat (limited to 'Mailman/ListAdmin.py')
| -rw-r--r-- | Mailman/ListAdmin.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py index 2f43c9004..110ec0085 100644 --- a/Mailman/ListAdmin.py +++ b/Mailman/ListAdmin.py @@ -30,6 +30,7 @@ import errno from mimelib.Generator import Generator from mimelib.Parser import Parser +from mimelib.date import formatdate from Mailman import mm_cfg from Mailman import Utils @@ -245,8 +246,11 @@ class ListAdmin: pass # Queue the file for delivery by qrunner. Trying to deliver the # message directly here can lead to a huge delay in web - # turnaround. - syslog('vette', 'approved held message enqueued: %s', filename) + # turnaround. Log the moderation and add a header. + msg['X-Moderated'] = '<%s> %s' % (self.GetOwnerEmail(), + formatdate()) + syslog('vette', 'held message approved, message-id: %s', + msg.get('message-id', 'n/a')) # Stick the message back in the incoming queue for further # processing. inq = get_switchboard(mm_cfg.INQUEUE_DIR) |
