~sambuddhabasu1/mailman/fix_mailman_run_error

  • Committer: Barry Warsaw
  • Date: 2007-08-01 20:11:08 UTC
  • mfrom: (6533.1.1 entrypoints)
  • Revision ID: barry@python.org-20070801201108-b8majehbmajtffcy
Move the pending database into the SQLAlchemy/Elixir layer.  The old
Pending.py module is removed.  Added an interface to this functionality such
that any IPendable (essentially a key/value mapping) can be associated with a
token, and that token can be confirmed and has a lifetime.  Any keys and
values can be stored, as long as both are unicodes.

Added a doctest.

Modified initialization of the database layer to support pluggability via
setuptools.  No longer is this layer initialized from a module, but now it's
instantiated from a class that implements IDatabase.  The StockDatabase class
implements the SQLAchemy/Elixir layer, but this can be overridden in a
setup.py.  Bye bye MANAGERS_INIT_FUNCTION, we hardly knew ye.

Added a package Mailman.app which will contain certain application specific
functionality.  Right now, the only there there is an IRegistar
implementation, which didn't seem to fit anywhere else.

Speaking of which, the IRegistrar interface implements all the logic related
to registration and verification of email addresses.  Think the equivalent of
MailList.AddMember() except generalized out of a mailing list context.  This
latter will eventually go away.  The IRegistrar sends the confirmation email.

Added an IDomain interface, though the only implementation of this so far
lives in the registration.txt doctest.  This defines the context necessary for
domain-level things, like address confirmation.

A bunch of other cleanups in modules that are necessary due to the refactoring
of Pending, but don't affect anything that's actually tested yet, so I won't
vouch for them (except that they don't throw errors on import!).

Clean up Defaults.py; also turn the functions seconds(), minutes(), hours()
and days() into their datetime.timedelta equivalents.

Consolidated the bogus email address exceptions.

In some places where appropriate, use email 4.0 module names instead of the
older brand.

Switch from Mailman.Utils.unique_message_id() to email.utils.make_msgid()
everywhere.  This is because we need to allow sending not in the context of a
mailing list (i.e. domain-wide address confirmation message).  So we can't use
a Message-ID generator that requires a mailing list.  OTOH, this breaks
Message-ID collision detection in the mail->news gateway.  I'll fix that
eventually.

Remove the 'verified' row on the Address table.  Now verification is checked
by Address.verified_on not being None.
Filename Latest Rev Last Changed Committer Comment Size
..
auto 6153 19 years ago tkikuchi FSF office has moved. chdcking in for MAIN branch. 3.6 KB Diff Download File
check_perms_grsecurity.py 6468 17 years ago msapiro Fixed bug # 1660666. 6.4 KB Diff Download File
mailman.mc 3983 23 years ago bwarsaw David Champion's contribution for better Sendmail/ 4.6 KB Diff Download File
majordomo2mailman.pl 4550 22 years ago bwarsaw A Majordomo -> Mailman 2.0 conversion script by He 18.5 KB Diff Download File
mm-handler 4753 22 years ago bwarsaw Merged in contributed updates by Ron Jarrell to wo 5.8 KB Diff Download File
mmdsr 6290 18 years ago msapiro Update Brad Knowles' mailman daily status report t 21.7 KB Diff Download File
qmail-to-mailman.py 5760 21 years ago bwarsaw Application of patch #682573 by Matthias Juchem. 3.9 KB Diff Download File
README 2588 24 years ago bwarsaw A simple README for the contrib directory. 226 bytes Diff Download File
README.check_perms_grsecurity 4192 22 years ago bwarsaw New updates by Marc MERLIN for hints on getting Ma 728 bytes Diff Download File
README.mm-handler 6300 18 years ago msapiro Added note from Kevin McNamee. Renamed from mm-ha 9.4 KB Diff Download File
README.mmdsr 6290 18 years ago msapiro Update Brad Knowles' mailman daily status report t 2.1 KB Diff Download File
rotatelogs.py 6463 17 years ago bwarsaw Update copyright years. 3.3 KB Diff Download File
virtusertable 3983 23 years ago bwarsaw David Champion's contribution for better Sendmail/ 1.3 KB Diff Download File