~sambuddhabasu1/mailman/fix_mailman_run_error

  • Committer: Barry Warsaw
  • Date: 2008-02-03 04:03:19 UTC
  • mfrom: (6581.1.27 rules)
  • Revision ID: barry@python.org-20080203040319-mnb1sar9bumaih01
Merge the 'rules' branch.

Give the first alpha a code name.

This branch mostly gets rid of all the approval oriented handlers in favor of
a chain-of-rules based approach.  This will be much more powerful and
extensible, allowing rule definition by plugin and chain creation via web
page.

When a message is processed by the incoming queue, it gets sent through a
chain of rules.  The starting chain is defined on the mailing list object, and
there is a built-in default starting chain, called 'built-in'.  Each chain is
made up of links, which describe a rule and an action, along with possibly
some other information.  Actions allow processing to take a detour through
another chain, jump to another chain, stop processing, run a function, etc.

The built-in chain essentially implements the original early part of the
handler pipeline.  If a message makes it through the built-in chain, it gets
sent to the prep queue, where the message is decorated and such before sending
out to the list membership.  The 'accept' chain is what moves the message into
the prep queue.

There are also 'hold', 'discard', and 'reject' chains, which do what you would
expect them to.  There are lots of built-in rules, implementing everything
from the old emergency handler to new handlers such as one not allowing empty
subject headers.

IMember grows an is_moderated attribute.

The 'adminapproved' metadata key is renamed 'moderator_approved'.

Fix some bogus uses of noreply_address to no_reply_address.

Stash an 'original_size' attribute on the message after parsing its plain
text.  This can be used later to ensure the original message does not exceed a
specified size without have to flatten the message again.

The KNOWN_SPAMMERS global variable is replaced with HEADER_MATCHES.  The
mailing list's header_filter_rules variable is replaced with header_matches
which has the same semantics as HEADER_MATCHES, but is list-specific.

DEFAULT_MAIL_COMMANDS_MAX_LINES -> EMAIL_COMMANDS_MAX_LINES.

Update smtplistener.py to be much better, to use maildir format instead of
mbox format, to respond to RSET commands by clearing the maildir, and by
silencing annoying asyncore error messages.

Extend the doctest runner so that it will run .txt files in any docs
subdirectory in the code tree.

Add plugable keys 'mailman.mta' and 'mailman.rules'.  The latter may have only
one setting while the former is extensible.

There are lots of doctests which should give all the gory details.

Mailman/Post.py -> Mailman/inject.py and the command line usage of this module
is removed.

SQLALCHEMY_ECHO, which was unused, is removed.

Backport the ability to specify additional footer interpolation variables by
the message metadata 'decoration-data' key.

can_acknowledge() defines whether a message can be responded to by the email
robot.

Simplify the implementation of _reset() based on Storm fixes.  Be able to
handle lists in Storm values.

Do some reorganization.
Filename Latest Rev Last Changed Committer Comment Size
..
bin 28 26 years ago mailman Initial revision Diff
contrib 1436 25 years ago bwarsaw Contribution by Bruce Perens -- cleaned for style Diff
cron 3 27 years ago klm Initial revision Diff
data 6580 17 years ago Barry Warsaw Reorganize the database subpackage, primarily by r Diff
docs 6461 18 years ago bwarsaw reorganize READMEs and other documentation. more Diff
Mailman 1 27 years ago klm Initial revision Diff
scripts 67 26 years ago mailman Initial revision Diff
tests 2722 24 years ago bwarsaw Rebuilding my zapped bounce test cases. Diff
.bzrignore 6581.1.17 17 years ago Barry Warsaw Merge from trunk. 114 bytes Diff Download File
ez_setup.py 6530.1.1 17 years ago Barry Warsaw The start of a setuptools conversion. All the Mak 8.3 KB Diff Download File
MANIFEST.in 6530.1.8 17 years ago Barry Warsaw Added a plugin so setuptools groks the Bazaar revi 40 bytes Diff Download File
README.txt 6533 17 years ago Barry Warsaw Some updates 6.6 KB Diff Download File
setup.py 6581.1.17 17 years ago Barry Warsaw Merge from trunk. 3.6 KB Diff Download File
TODO.txt 6579 17 years ago Barry Warsaw This one took care of itself. :) 564 bytes Diff Download File