summaryrefslogtreecommitdiff
path: root/src/mailman/handlers/to_archive.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-03-25 09:36:52 -0400
committerBarry Warsaw2016-03-25 09:36:52 -0400
commitb9c06627e46ff1e9f09965228ab3b48f217109af (patch)
treea600fa04dd2ac6d006b88aee2c5e605673629fa3 /src/mailman/handlers/to_archive.py
parent49d630f2761175e404f3b1d811e61bc43eb6b25b (diff)
downloadmailman-b9c06627e46ff1e9f09965228ab3b48f217109af.tar.gz
mailman-b9c06627e46ff1e9f09965228ab3b48f217109af.tar.zst
mailman-b9c06627e46ff1e9f09965228ab3b48f217109af.zip
Diffstat (limited to 'src/mailman/handlers/to_archive.py')
-rw-r--r--src/mailman/handlers/to_archive.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mailman/handlers/to_archive.py b/src/mailman/handlers/to_archive.py
index 4a388bdca..d5b980ab4 100644
--- a/src/mailman/handlers/to_archive.py
+++ b/src/mailman/handlers/to_archive.py
@@ -17,11 +17,7 @@
"""Add the message to the archives."""
-__all__ = [
- 'ToArchive',
- ]
-
-
+from mailman import public
from mailman.config import config
from mailman.core.i18n import _
from mailman.interfaces.archiver import ArchivePolicy
@@ -29,7 +25,7 @@ from mailman.interfaces.handler import IHandler
from zope.interface import implementer
-
+@public
@implementer(IHandler)
class ToArchive:
"""Add the message to the archives."""
@@ -41,7 +37,7 @@ class ToArchive:
"""See `IHandler`."""
# Short circuits.
if (msgdata.get('isdigest') or
- mlist.archive_policy is ArchivePolicy.never):
+ mlist.archive_policy is ArchivePolicy.never):
return
# Common practice seems to favor "X-No-Archive: yes". No other value
# for this header seems to make sense, so we'll just test for it's