~sambuddhabasu1/mailman/fix_mailman_run_error

« back to all changes in this revision

Viewing changes to src/mailman/core/switchboard.py

  • Committer: Barry Warsaw
  • Date: 2012-03-26 12:04:00 UTC
  • Revision ID: barry@list.org-20120326120400-jfezy6cg60ygod7k
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.

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
        # file name consists of two parts separated by a '+': the received
138
138
        # time for this message (i.e. when it first showed up on this system)
139
139
        # and the sha hex digest.
140
 
        rcvtime = data.setdefault('received_time', now)
141
 
        filebase = repr(rcvtime) + '+' + hashlib.sha1(hashfood).hexdigest()
 
140
        filebase = repr(now) + '+' + hashlib.sha1(hashfood).hexdigest()
142
141
        filename = os.path.join(self.queue_directory, filebase + '.pck')
143
142
        tmpfile = filename + '.tmp'
144
143
        # Always add the metadata schema version number