summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/mime.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-03-25 10:13:48 -0400
committerBarry Warsaw2016-03-25 10:13:48 -0400
commita681354cadf48394127796eb111c2904283c9288 (patch)
tree87377966491672f981d6567d78debd384004d11b /src/mailman/interfaces/mime.py
parentb9c06627e46ff1e9f09965228ab3b48f217109af (diff)
downloadmailman-a681354cadf48394127796eb111c2904283c9288.tar.gz
mailman-a681354cadf48394127796eb111c2904283c9288.tar.zst
mailman-a681354cadf48394127796eb111c2904283c9288.zip
Diffstat (limited to 'src/mailman/interfaces/mime.py')
-rw-r--r--src/mailman/interfaces/mime.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/mailman/interfaces/mime.py b/src/mailman/interfaces/mime.py
index afa49b243..e30354cd9 100644
--- a/src/mailman/interfaces/mime.py
+++ b/src/mailman/interfaces/mime.py
@@ -17,18 +17,12 @@
"""MIME content filtering."""
-__all__ = [
- 'FilterAction',
- 'FilterType',
- 'IContentFilter',
- ]
-
-
from enum import Enum
+from mailman import public
from zope.interface import Interface, Attribute
-
+@public
class FilterAction(Enum):
# Discard a message that matches the content type filter.
discard = 0
@@ -40,6 +34,7 @@ class FilterAction(Enum):
preserve = 3
+@public
class FilterType(Enum):
# Filter MIME type.
filter_mime = 0
@@ -51,7 +46,7 @@ class FilterType(Enum):
pass_extension = 3
-
+@public
class IContentFilter(Interface):
"""A single content filter settings for a mailing list."""