summaryrefslogtreecommitdiff
path: root/src/mailman/core/switchboard.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-03-26 08:04:00 -0400
committerBarry Warsaw2012-03-26 08:04:00 -0400
commit5cb68db131db32c643382f6fd1418a3659dc6f8e (patch)
tree13a2e02a48303804c2cae37c656937711bd37fa5 /src/mailman/core/switchboard.py
parentcfb7138579ddb8a4adb10956ceb39089181271b4 (diff)
downloadmailman-5cb68db131db32c643382f6fd1418a3659dc6f8e.tar.gz
mailman-5cb68db131db32c643382f6fd1418a3659dc6f8e.tar.zst
mailman-5cb68db131db32c643382f6fd1418a3659dc6f8e.zip
Architecture
------------ * Internally, all datetimes are kept in the UTC timezone, however because of LP: #280708, they are stored in the database in naive format. * `received_time` is now added to the message metadata by the LMTP runner instead of by `Switchboard.enqueue()`. This latter no longer depends on `received_time` in the metadata. * The `ArchiveRunner` no longer acquires a lock before it calls the individual archiver implementations, since not all of them need a lock. If they do, the implementations must acquire said lock themselves. Configuration ------------- * New configuration variables `clobber_date` and `clobber_skew` supported in every `[archiver.<name>]` section. These are used to determine under what circumstances a message destined for a specific archiver should have its `Date:` header clobbered.
Diffstat (limited to 'src/mailman/core/switchboard.py')
-rw-r--r--src/mailman/core/switchboard.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mailman/core/switchboard.py b/src/mailman/core/switchboard.py
index ba8b2ec3f..7cab4f4ad 100644
--- a/src/mailman/core/switchboard.py
+++ b/src/mailman/core/switchboard.py
@@ -137,8 +137,7 @@ class Switchboard:
# file name consists of two parts separated by a '+': the received
# time for this message (i.e. when it first showed up on this system)
# and the sha hex digest.
- rcvtime = data.setdefault('received_time', now)
- filebase = repr(rcvtime) + '+' + hashlib.sha1(hashfood).hexdigest()
+ filebase = repr(now) + '+' + hashlib.sha1(hashfood).hexdigest()
filename = os.path.join(self.queue_directory, filebase + '.pck')
tmpfile = filename + '.tmp'
# Always add the metadata schema version number