1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright (C) 2007-2016 by the Free Software Foundation, Inc.
#
# This file is part of GNU Mailman.
#
# GNU Mailman is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# GNU Mailman is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# GNU Mailman. If not, see <http://www.gnu.org/licenses/>.
"""Interface for preferences."""
from mailman import public
from zope.interface import Interface, Attribute
@public
class IPreferences(Interface):
"""Delivery related information."""
acknowledge_posts = Attribute(
"""Send an acknowledgment for every posting?
This preference can be True, False, or None. True means the user is
sent a receipt for each message they send to the mailing list. False
means that no receipt is sent. None means no preference is
specified.""")
preferred_language = Attribute(
"""The preferred language for interacting with a mailing list.
This is either the language code for the preferred language, or None
meaning no preferred language is specified.""")
receive_list_copy = Attribute(
"""Should an explicit recipient receive a list copy?
When a list member is explicitly named in a message's recipients
(e.g. the To or CC headers), and this preference is True, the
recipient will still receive a list copy of the message. When False,
this list copy will be suppressed. None means no preference is
specified.""")
receive_own_postings = Attribute(
"""Should the poster get a list copy of their own messages?
When this preference is True, a list copy will be sent to the poster
of all messages. When False, this list copy will be suppressed. None
means no preference is specified.""")
delivery_mode = Attribute(
"""The preferred delivery mode.
This is an enum constant of the type DeliveryMode. It may also be
None which means that no preference is specified.""")
delivery_status = Attribute(
"""The delivery status.
This is an enum constant of type DeliveryStatus. It may also be None
which means that no preference is specified.
XXX I'm not sure this is the right place to put this.""")
|