diff options
| author | Barry Warsaw | 2007-10-10 00:16:12 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2007-10-10 00:16:12 -0400 |
| commit | 15f9e73fdb96a145632e5916cc0073472c014c99 (patch) | |
| tree | d5bf1b81d4945e20586d17a5bd2002c8ce6d986c /Mailman/interfaces/mailinglist.py | |
| parent | 28f41bc768390f11cf817534cca67a1683f235a7 (diff) | |
| download | mailman-15f9e73fdb96a145632e5916cc0073472c014c99.tar.gz mailman-15f9e73fdb96a145632e5916cc0073472c014c99.tar.zst mailman-15f9e73fdb96a145632e5916cc0073472c014c99.zip | |
Remove the action.py module, move this to Mailman/interfaces/__init__.py.
Convert IMailingList.personalize to a enum.
Change all non-obsolete occurances of GetListEmail() to posting_address.
Diffstat (limited to 'Mailman/interfaces/mailinglist.py')
| -rw-r--r-- | Mailman/interfaces/mailinglist.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Mailman/interfaces/mailinglist.py b/Mailman/interfaces/mailinglist.py index d52a6f7b5..2d3811785 100644 --- a/Mailman/interfaces/mailinglist.py +++ b/Mailman/interfaces/mailinglist.py @@ -19,6 +19,7 @@ __all__ = [ 'IMailingList', + 'Personalization', 'ReplyToMunging', ] @@ -27,6 +28,17 @@ from zope.interface import Interface, Attribute +class Personalization(Enum): + none = 0 + # Everyone gets a unique copy of the message, and there are a few more + # substitution variables, but no headers are modified. + individual = 1 + # All of the 'individual' personalization plus recipient header + # modification. + full = 2 + + + class ReplyToMunging(Enum): # The Reply-To header is passed through untouched no_munging = 0 |
