From 304cd1caaf90dc8bf13e4ea3ff7401c0261d60a8 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Wed, 9 May 2001 15:06:21 +0000 Subject: _dispose(): Add a new header X-List-Received-Date: which contains the time that Mailman received the message. This header only goes into the archived copy of the message (header name and semantics were discussed on mailman-developers). --- Mailman/Queue/ArchRunner.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Mailman/Queue/ArchRunner.py b/Mailman/Queue/ArchRunner.py index 9e005ab04..f41a38654 100644 --- a/Mailman/Queue/ArchRunner.py +++ b/Mailman/Queue/ArchRunner.py @@ -45,6 +45,7 @@ class ArchRunner(Runner): # or way in the past. clobber = 0 originaldate = msg.get('date') + receivedtime = formatdate(msgdata['received_time']) if not originaldate: clobber = 1 elif mm_cfg.ARCHIVER_CLOBBER_DATE_POLICY == 1: @@ -61,9 +62,11 @@ class ArchRunner(Runner): if clobber: del msg['date'] del msg['x-original-date'] - msg['Date'] = formatdate(msgdata['received_time']) + msg['Date'] = receivedtime if originaldate: msg['X-Original-Date'] = originaldate + # Always put an indication of when we received the message. + msg['X-List-Received-Date'] = receivedtime # # runner specific code try: -- cgit v1.2.3-70-g09d2