~sambuddhabasu1/mailman/fix_mailman_run_error

« back to all changes in this revision

Viewing changes to src/mailman/styles/default.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:
27
27
 
28
28
# XXX Styles need to be reconciled with lazr.config.
29
29
 
30
 
import datetime
31
 
 
 
30
from datetime import timedelta
32
31
from zope.interface import implements
33
32
 
34
33
from mailman.core.i18n import _
153
152
        mlist.autoresponse_postings_text = ''
154
153
        mlist.autorespond_requests = ResponseAction.none
155
154
        mlist.autoresponse_request_text = ''
156
 
        mlist.autoresponse_grace_period = datetime.timedelta(days=90)
 
155
        mlist.autoresponse_grace_period = timedelta(days=90)
157
156
        # Bounces
158
157
        mlist.forward_unrecognized_bounces_to = (
159
158
            UnrecognizedBounceDisposition.administrators)
160
159
        mlist.process_bounces = True
161
160
        mlist.bounce_score_threshold = 5.0
162
 
        mlist.bounce_info_stale_after = datetime.timedelta(days=7)
 
161
        mlist.bounce_info_stale_after = timedelta(days=7)
163
162
        mlist.bounce_you_are_disabled_warnings = 3
164
 
        mlist.bounce_you_are_disabled_warnings_interval = (
165
 
            datetime.timedelta(days=7))
 
163
        mlist.bounce_you_are_disabled_warnings_interval = timedelta(days=7)
166
164
        mlist.bounce_notify_owner_on_disable = True
167
165
        mlist.bounce_notify_owner_on_removal = True
168
166
        # This holds legacy member related information.  It's keyed by the