The mailing list is a core object in Mailman. It is uniquely identified in the system by its list-id which is derived from its posting address, i.e. the email address you would send a message to in order to post a message to the mailing list. The list id is defined in RFC 2369.
The mailing list also has convenient attributes for accessing the list’s short name (i.e. local part) and host name.
>>> print(mlist.list_name) aardvark >>> print(mlist.mail_host) example.com
Mailing list membership is represented by rosters. Each mailing list has several rosters of members, representing the subscribers to the mailing list, the owners, the moderators, and so on. The rosters are defined by a membership role.
Addresses can be explicitly subscribed to a mailing list. By default, a subscription puts the address in the member role, meaning that address will receive a copy of any message sent to the mailing list.
>>> from mailman.interfaces.usermanager import IUserManager >>> from zope.component import getUtility >>> user_manager = getUtility(IUserManager) >>> aperson = user_manager.create_address('[email protected]') >>> bperson = user_manager.create_address('[email protected]') >>> mlist.subscribe(aperson) <Member: [email protected] on [email protected] as MemberRole.member> >>> mlist.subscribe(bperson) <Member: [email protected] on [email protected] as MemberRole.member>
Both addresses appear on the roster of members.
>>> from operator import attrgetter >>> sort_key = attrgetter('address.email')
By explicitly specifying the role of the subscription, an address can be added to the owner and moderator rosters.
>>> from mailman.interfaces.member import MemberRole >>> mlist.subscribe(aperson, MemberRole.owner) <Member: [email protected] on [email protected] as MemberRole.owner> >>> cperson = user_manager.create_address('[email protected]') >>> mlist.subscribe(cperson, MemberRole.owner) <Member: [email protected] on [email protected] as MemberRole.owner> >>> mlist.subscribe(cperson, MemberRole.moderator) <Member: [email protected] on [email protected] as MemberRole.moderator>
A Person is now both a member and an owner of the mailing list. C Person is an owner and a moderator.
>>> for member in sorted(mlist.owners.members, key=sort_key): ... print(member) <Member: [email protected] on [email protected] as MemberRole.owner> <Member: [email protected] on [email protected] as MemberRole.owner> >>> for member in mlist.moderators.members: ... print(member) <Member: [email protected] on [email protected] as MemberRole.moderator>
All rosters can also be accessed indirectly.
>>> roster = mlist.get_roster(MemberRole.member) >>> for member in sorted(roster.members, key=sort_key): ... print(member) <Member: [email protected] on [email protected] as MemberRole.member> <Member: [email protected] on [email protected] as MemberRole.member> >>> roster = mlist.get_roster(MemberRole.owner) >>> for member in sorted(roster.members, key=sort_key): ... print(member) <Member: [email protected] on [email protected] as MemberRole.owner> <Member: [email protected] on [email protected] as MemberRole.owner> >>> roster = mlist.get_roster(MemberRole.moderator) >>> for member in roster.members: ... print(member) <Member: cpers[email protected] on [email protected] as MemberRole.moderator>
An alternative way of subscribing to a mailing list is as a user with a preferred address. This way the user can change their subscription address just by changing their preferred address.
The user must have a preferred address.
>>> from mailman.utilities.datetime import now >>> user = user_manager.create_user('[email protected]', 'Dave Person') >>> address = list(user.addresses) >>> address.verified_on = now() >>> user.preferred_address = address
The preferred address is used in the subscription.
>>> mlist.subscribe(user) <Member: Dave Person <[email protected]> on [email protected] as MemberRole.member> >>> for member in sorted(mlist.members.members, key=sort_key): ... print(member) <Member: [email protected] on [email protected] as MemberRole.member> <Member: [email protected] on [email protected] as MemberRole.member> <Member: Dave Person <[email protected]> on [email protected] as MemberRole.member>
If the user’s preferred address changes, their subscribed email address also changes automatically.
>>> new_address = user.register('[email protected]') >>> new_address.verified_on = now() >>> user.preferred_address = new_address >>> for member in sorted(mlist.members.members, key=sort_key): ... print(member) <Member: [email protected] on [email protected] as MemberRole.member> <Member: [email protected] on [email protected] as MemberRole.member> <Member: [email protected] on [email protected] as MemberRole.member>
A user is allowed to explicitly subscribe again with a specific address, even if this address is their preferred address.
This defines all the attributes of a MailingList.
A mailing list.
acceptable_aliases= <zope.interface.interface.Attribute object at 0x7f42cc0c1518 mailman.interfaces.mailinglist.IMailingList.acceptable_aliases>¶
List of addresses and regexps acceptable as explicit destination.
This is a list of addresses and regexps matching addresses that are acceptable in To: or Cc: when require_explicit_destination is True.
admin_immed_notify= <zope.interface.interface.Attribute object at 0x7f42cc0c1978 mailman.interfaces.mailinglist.IMailingList.admin_immed_notify>¶
Flag controlling immediate notification of requests.
List moderators normally get daily notices about pending administrative requests. This flag controls whether moderators also receive immediate notification of such pending requests.
admin_notify_mchanges= <zope.interface.interface.Attribute object at 0x7f42cc0c19b0 mailman.interfaces.mailinglist.IMailingList.admin_notify_mchanges>¶
Flag controlling notification of joins and leaves.
List moderators can receive notifications for every member that joins or leaves their mailing lists. This flag controls those notifications.
administrators= <zope.interface.interface.Attribute object at 0x7f42cc0bcd30 mailman.interfaces.mailinglist.IMailingList.administrators>¶
The IUser administrators of this mailing list.
This includes the IUsers who are both owners and moderators of the mailing list.
administrivia= <zope.interface.interface.Attribute object at 0x7f42cc0c1550 mailman.interfaces.mailinglist.IMailingList.administrivia>¶
Flag controlling administrivia checks.
Administrivia tests check whether postings to the mailing list are really meant for the -request address. Examples include messages with help, subscribe, unsubscribe, and other commands. When such messages are incorrectly posted to the general mailing list, they are just noise, and when this flag is set will be intercepted and in general held for moderator approval.
advertised= <zope.interface.interface.Attribute object at 0x7f42cc0bc9b0 mailman.interfaces.mailinglist.IMailingList.advertised>¶
Advertise this mailing list when people ask for an overview of the available mailing lists.
allow_list_posts= <zope.interface.interface.Attribute object at 0x7f42cc0bc908 mailman.interfaces.mailinglist.IMailingList.allow_list_posts>¶
Flag specifying posts to the list are generally allowed.
This controls the value of the RFC 2369 List-Post header. This is usually set to True, except for announce-only lists. When False, the List-Post is set to NO as per the RFC.
anonymous_list= <zope.interface.interface.Attribute object at 0x7f42cc0bc978 mailman.interfaces.mailinglist.IMailingList.anonymous_list>¶
Flag controlling whether messages to this list are anonymized.
Anonymizing messages is not perfect, however setting this flag removes the sender of the message (in the From, Sender, and Reply-To fields) and replaces these with the list’s posting address.
archive_policy= <zope.interface.interface.Attribute object at 0x7f42cc0bcef0 mailman.interfaces.mailinglist.IMailingList.archive_policy>¶
The policy for archiving messages to this mailing list.
The value is an ArchivePolicy enum. Use this to archive the mailing list publicly, privately, or not at all.
archive_rendering_mode= <zope.interface.interface.Attribute object at 0x7f42cc0c1ba8 mailman.interfaces.mailinglist.IMailingList.archive_rendering_mode>¶
How are Emails rendered in archivers? This is only a suggested mode for Archivers and is not related to actual contents of Emails.
Primary use of this setting is going to be Hyperkitty, which can render emails as markdown text.
Values are ArchiveRenderingMode Enum.
autorespond_owner= <zope.interface.interface.Attribute object at 0x7f42cc0c1278 mailman.interfaces.mailinglist.IMailingList.autorespond_owner>¶
How should the mailing list automatically respond to messages sent to the -owner or -moderator address?
Options are: * No response sent * Send a response and discard the original messge * Send a response and continue processing the original message
autorespond_postings= <zope.interface.interface.Attribute object at 0x7f42cc0c12e8 mailman.interfaces.mailinglist.IMailingList.autorespond_postings>¶
How should the mailing list automatically respond to messages sent to the list’s posting address?
Options are: * No response sent * Send a response and discard the original messge * Send a response and continue processing the original message
autorespond_requests= <zope.interface.interface.Attribute object at 0x7f42cc0c1358 mailman.interfaces.mailinglist.IMailingList.autorespond_requests>¶
How should the mailing list automatically respond to messages sent to the list’s -request address?
autoresponse_grace_period= <zope.interface.interface.Attribute object at 0x7f42cc0c1240 mailman.interfaces.mailinglist.IMailingList.autoresponse_grace_period>¶
Time period (in days) between automatic responses.
When this mailing list is set to send an auto-response for messages sent to mailing list posts, the mailing list owners, or the -request address, such reponses will not be sent to the same user more than once during the grace period. Set to zero (or a negative value) for no grace period (i.e. auto-respond to every message).
autoresponse_owner_text= <zope.interface.interface.Attribute object at 0x7f42cc0c12b0 mailman.interfaces.mailinglist.IMailingList.autoresponse_owner_text>¶
The text sent in an autoresponse to the owner or moderator.
autoresponse_postings_text= <zope.interface.interface.Attribute object at 0x7f42cc0c1320 mailman.interfaces.mailinglist.IMailingList.autoresponse_postings_text>¶
The text sent in an autoresponse to the list’s posting address.
autoresponse_request_text= <zope.interface.interface.Attribute object at 0x7f42cc0c1390 mailman.interfaces.mailinglist.IMailingList.autoresponse_request_text>¶
The text sent in an autoresponse to the list’s -request address.
bounce_info_stale_after= <zope.interface.interface.Attribute object at 0x7f42cc0c17b8 mailman.interfaces.mailinglist.IMailingList.bounce_info_stale_after>¶
Number of days after which bounce info is considered stale.
The number of days after which a member’s bounce information is considered stale. If no new bounces have been received in the interim, the bounce score is reset to zero. This value must be an integer.
bounce_notify_owner_on_disable= <zope.interface.interface.Attribute object at 0x7f42cc0c17f0 mailman.interfaces.mailinglist.IMailingList.bounce_notify_owner_on_disable>¶
This option controls whether or not the list owner is notified when a member’s subscription is automatically disabled due to their bounce threshold being reached.
bounce_notify_owner_on_removal= <zope.interface.interface.Attribute object at 0x7f42cc0c1828 mailman.interfaces.mailinglist.IMailingList.bounce_notify_owner_on_removal>¶
This option controls whether or not the list owner is notified when a member is removed from the list after their disabled notifications have been exhausted.
bounce_score_threshold= <zope.interface.interface.Attribute object at 0x7f42cc0c1860 mailman.interfaces.mailinglist.IMailingList.bounce_score_threshold>¶
Bounce score threshold for a mailing-list.
Threshold value for a Member’s bounce_score after which we will either disable membership or unsubscribe the member from the mailing list.
bounce_you_are_disabled_warnings= <zope.interface.interface.Attribute object at 0x7f42cc0c1898 mailman.interfaces.mailinglist.IMailingList.bounce_you_are_disabled_warnings>¶
The number of notices a disabled member will receive before their address is removed from the mailing list’s roster. Set this to 0 to immediately remove an address from the list once their bounce score exceeds the threshold. This value must be an integer.
bounce_you_are_disabled_warnings_interval= <zope.interface.interface.Attribute object at 0x7f42cc0c18d0 mailman.interfaces.mailinglist.IMailingList.bounce_you_are_disabled_warnings_interval>¶
The number of days between each disabled notification.
bounces_address= <zope.interface.interface.Attribute object at 0x7f42cc0bcac8 mailman.interfaces.mailinglist.IMailingList.bounces_address>¶
The address which reaches the automated bounce processor for this mailing list. Generally, humans should never respond directly to this address.
collapse_alternatives= <zope.interface.interface.Attribute object at 0x7f42cc0c1630 mailman.interfaces.mailinglist.IMailingList.collapse_alternatives>¶
Flag specifying whether multipart/alternatives should be collapsed.
After all MIME content filtering is complete, collapsing alternatives replaces the outer multipart/alternative parts with the first subpart.
The address used for various forms of email confirmation.
convert_html_to_plaintext= <zope.interface.interface.Attribute object at 0x7f42cc0c15f8 mailman.interfaces.mailinglist.IMailingList.convert_html_to_plaintext>¶
Flag specifying whether text/html parts should be converted.
When True, after filtering, if there are any text/html parts left in the original message, they are converted to text/plain.
created_at= <zope.interface.interface.Attribute object at 0x7f42cc09f630 mailman.interfaces.mailinglist.IMailingList.created_at>¶
The date and time that the mailing list was created.
data_path= <zope.interface.interface.Attribute object at 0x7f42cc0c14a8 mailman.interfaces.mailinglist.IMailingList.data_path>¶
The file system path to list-specific data.
An example of list-specific data is the temporary digest mbox file that gets created to accumlate messages for the digest.
default_member_action= <zope.interface.interface.Attribute object at 0x7f42cc0c1748 mailman.interfaces.mailinglist.IMailingList.default_member_action>¶
The default action to take for postings from members.
When an address is subscribed to the mailing list, this attribute sets the initial moderation action (as an Action). When the action is Action.defer (the default), then normal posting decisions are made. When the action is Action.accept, the postings are accepted without any other checks.
default_nonmember_action= <zope.interface.interface.Attribute object at 0x7f42cc0c1780 mailman.interfaces.mailinglist.IMailingList.default_nonmember_action>¶
The default action to take for postings from nonmembers.
When a nonmember address posts to the mailing list, this attribute sets the initial moderation action (as an Action). When the action is Action.defer (the default), then normal posting decisions are made. When the action is Action.accept, the postings are accepted without any other checks.
description= <zope.interface.interface.Attribute object at 0x7f42cc0bc828 mailman.interfaces.mailinglist.IMailingList.description>¶
A terse phrase identifying this mailing list.
This description is used when the mailing list is listed with other mailing lists, or in headers, and so forth. It should be as succinct as you can get it, while still identifying what the list is.
digest_last_sent_at= <zope.interface.interface.Attribute object at 0x7f42cc0c1160 mailman.interfaces.mailinglist.IMailingList.digest_last_sent_at>¶
The date and time a digest of this mailing list was last sent.
digest_members= <zope.interface.interface.Attribute object at 0x7f42cc0bce10 mailman.interfaces.mailinglist.IMailingList.digest_members>¶
A roster of all the IMembers who are to receive digests of postings to this mailing list, regardless of whether they have their deliver disabled or not, or of the type of digest they are to receive.
digest_send_periodic= <zope.interface.interface.Attribute object at 0x7f42cc0c10f0 mailman.interfaces.mailinglist.IMailingList.digest_send_periodic>¶
Should a digest be sent by the mailman send_digest command even when the size threshold hasn’t yet been met?
digest_size_threshold= <zope.interface.interface.Attribute object at 0x7f42cc0c10b8 mailman.interfaces.mailinglist.IMailingList.digest_size_threshold>¶
The maximum (approximate) size in kilobytes of the digest currently being collected.
digest_volume_frequency= <zope.interface.interface.Attribute object at 0x7f42cc0c1128 mailman.interfaces.mailinglist.IMailingList.digest_volume_frequency>¶
How often should a new digest volume be started?
digests_enabled= <zope.interface.interface.Attribute object at 0x7f42cc0c1080 mailman.interfaces.mailinglist.IMailingList.digests_enabled>¶
Whether or not digests are enabled for this mailing list.
display_name= <zope.interface.interface.Attribute object at 0x7f42cc0bc7f0 mailman.interfaces.mailinglist.IMailingList.display_name>¶
The short human-readable descriptive name for the mailing list. This is used in locations such as the message footers and as the default value for the Subject prefix.
dmarc_mitigate_action= <zope.interface.interface.Attribute object at 0x7f42cc0bcbe0 mailman.interfaces.mailinglist.IMailingList.dmarc_mitigate_action>¶
The mitigation to apply to messages from a DMARC matching domain.
This is a DMARCMitigateAction to be applied to messages From: a domain publishing DMARC p=reject or quarantine, and possibly unconditionally depending on the setting of dmarc_mitigate_unconditionally.
dmarc_mitigate_unconditionally= <zope.interface.interface.Attribute object at 0x7f42cc0bcc18 mailman.interfaces.mailinglist.IMailingList.dmarc_mitigate_unconditionally>¶
Should DMARC mitigations apply unconditionally?
A flag indicating whether to apply dmarc_mitigate_action to all messages, but only if dmarc_mitigate_action is other than reject or discard.
dmarc_moderation_notice= <zope.interface.interface.Attribute object at 0x7f42cc0bcc50 mailman.interfaces.mailinglist.IMailingList.dmarc_moderation_notice>¶
Text to include in any DMARC rejected message.
Rejection notices are sent when DMARCMitigateAction of reject applies.
dmarc_wrapped_message_text= <zope.interface.interface.Attribute object at 0x7f42cc0bcc88 mailman.interfaces.mailinglist.IMailingList.dmarc_wrapped_message_text>¶
Additional MIME text to include in DMARC wrapped messages.
This text is added as a separate text/plain MIME part preceding the original message part in the wrapped message when DMARCMitigateAction of wrap_message applies.
domain= <zope.interface.interface.Attribute object at 0x7f42cc0bc7b8 mailman.interfaces.mailinglist.IMailingList.domain>¶
The IDomain that this mailing list is defined in.
filter_action= <zope.interface.interface.Attribute object at 0x7f42cc0c15c0 mailman.interfaces.mailinglist.IMailingList.filter_action>¶
Action to take when the top-level content-type is filtered.
The value is a FilterAction enum.
filter_content= <zope.interface.interface.Attribute object at 0x7f42cc0c1588 mailman.interfaces.mailinglist.IMailingList.filter_content>¶
Flag specifying whether to filter a message’s content.
Filtering is performed on MIME type and file name extension.
filter_extensions= <zope.interface.interface.Attribute object at 0x7f42cc0c16d8 mailman.interfaces.mailinglist.IMailingList.filter_extensions>¶
Sequence of file extensions that should be filtered out.
Set this attribute to a sequence to change it, or to None to empty it.
filter_types= <zope.interface.interface.Attribute object at 0x7f42cc0c1668 mailman.interfaces.mailinglist.IMailingList.filter_types>¶
Sequence of MIME types that should be filtered out.
These can be either main types or main/sub types. Set this attribute to a sequence to change it, or to None to empty it.
forward_unrecognized_bounces_to= <zope.interface.interface.Attribute object at 0x7f42cc0c1908 mailman.interfaces.mailinglist.IMailingList.forward_unrecognized_bounces_to>¶
What to do when a bounce contains no recognizable addresses.
This is an enumeration which specifies what to do with such bounce messages. They can be discarded, forward to the list owner, or forwarded to the site owner.
fqdn_listname= <zope.interface.interface.Attribute object at 0x7f42cc0bc780 mailman.interfaces.mailinglist.IMailingList.fqdn_listname>¶
The read-only fully qualified name of the mailing list. This is the guaranteed unique id for the mailing list, and it is always the address to which messages are posted, e.g. firstname.lastname@example.org. It is always comprised of the list_name + ‘@’ + mail_host.
gateway_to_mail= <zope.interface.interface.Attribute object at 0x7f42cc0c1a58 mailman.interfaces.mailinglist.IMailingList.gateway_to_mail>¶
Flag indicating that posts to the linked newsgroup should be gated to the list.
gateway_to_news= <zope.interface.interface.Attribute object at 0x7f42cc0c1a90 mailman.interfaces.mailinglist.IMailingList.gateway_to_news>¶
Flag indicating that posts to the list should be gated to the linked newsgroup.
Return the appropriate roster for the given role.
Parameters: role (MemberRole) – The requested roster’s role. Returns: The requested roster. Return type: Roster
include_rfc2369_headers= <zope.interface.interface.Attribute object at 0x7f42cc0bc940 mailman.interfaces.mailinglist.IMailingList.include_rfc2369_headers>¶
Flag specifying whether to include any RFC 2369 header, including the RFC 2919 List-ID header.
info= <zope.interface.interface.Attribute object at 0x7f42cc0bc860 mailman.interfaces.mailinglist.IMailingList.info>¶
A longer description of this mailing list. This can be any arbitrary text, up to a database-specific maximum length.
is_subscribed(subscriber, role=<MemberRole.member: 1>)¶
Is the given address or user subscribed to the mailing list?
- subscriber (IUser or IAddress) – The address or user to check.
- role (MemberRole) – The role being checked (e.g. a member, owner, or moderator of a mailing list).
A flag indicating whether the subscriber is already subscribed to the mailing list or not.
join_address= <zope.interface.interface.Attribute object at 0x7f42cc0bcb00 mailman.interfaces.mailinglist.IMailingList.join_address>¶
The address to which subscription requests should be sent.
last_digest_recipients= <zope.interface.interface.Attribute object at 0x7f42cc0c1208 mailman.interfaces.mailinglist.IMailingList.last_digest_recipients>¶
An iterator over the addresses that should receive one last digest.
Items are 2-tuples of (IAddress, DeliveryMode). The one last digest recipients are cleared.
last_post_at= <zope.interface.interface.Attribute object at 0x7f42cc0bcf28 mailman.interfaces.mailinglist.IMailingList.last_post_at>¶
The date and time a message was last posted to the mailing list.
leave_address= <zope.interface.interface.Attribute object at 0x7f42cc0bcb38 mailman.interfaces.mailinglist.IMailingList.leave_address>¶
The address to which unsubscription requests should be sent.
The name of the linked newsgroup.
list_id= <zope.interface.interface.Attribute object at 0x7f42cc0bc748 mailman.interfaces.mailinglist.IMailingList.list_id>¶
The identity of the mailing list. This value will never change. It is defined in RFC 2369.
list_name= <zope.interface.interface.Attribute object at 0x7f42cc0bc6a0 mailman.interfaces.mailinglist.IMailingList.list_name>¶
The read-only short name of the mailing list. Note that where a Mailman installation supports multiple domains, this short name may not be unique. Use the fqdn_listname attribute for a guaranteed unique id for the mailing list. This short name is always the local part of the posting email address. For example, if messages are posted to email@example.com, then the list_name is ‘mylist’.
mail_host= <zope.interface.interface.Attribute object at 0x7f42cc0bc710 mailman.interfaces.mailinglist.IMailingList.mail_host>¶
The read-only domain name ‘hosting’ this mailing list. This is always the domain name part of the posting email address, and it may bear no relationship to the web url used to access this mailing list. For example, if messages are posted to firstname.lastname@example.org, then the mail_host is ‘example.com’.
member_roster_visibility= <zope.interface.interface.Attribute object at 0x7f42cc0c1048 mailman.interfaces.mailinglist.IMailingList.member_roster_visibility>¶
The policy for who can view the member roster of this mailing list.
The value is an RosterVisibility enum. Use this to change who can view the member list. Options are public, members, or moderators.
members= <zope.interface.interface.Attribute object at 0x7f42cc0bcda0 mailman.interfaces.mailinglist.IMailingList.members>¶
A roster of all the members of the mailing list, regardless of whether they are to receive regular messages or digests, or whether they have their delivery disabled or not.
moderators= <zope.interface.interface.Attribute object at 0x7f42cc0bccf8 mailman.interfaces.mailinglist.IMailingList.moderators>¶
The IUser moderators of this mailing list.
This does not include the IUsers who are owners but not moderators of the mailing list.
newsgroup_moderation= <zope.interface.interface.Attribute object at 0x7f42cc0c1b00 mailman.interfaces.mailinglist.IMailingList.newsgroup_moderation>¶
The moderation policy for the linked newsgroup, if there is one.
next_digest_number= <zope.interface.interface.Attribute object at 0x7f42cc0c11d0 mailman.interfaces.mailinglist.IMailingList.next_digest_number>¶
A sequence number for a specific digest in a given volume. When the digest volume number is bumped, the digest number is reset to 1.
nntp_prefix_subject_too= <zope.interface.interface.Attribute object at 0x7f42cc0c1b38 mailman.interfaces.mailinglist.IMailingList.nntp_prefix_subject_too>¶
Flag indicating whether the list’s subject_prefix should be included in posts gated to usenet.
no_reply_address= <zope.interface.interface.Attribute object at 0x7f42cc0bca20 mailman.interfaces.mailinglist.IMailingList.no_reply_address>¶
The address to which all messages will be immediately discarded, without prejudice or record. This address is specific to the ddomain, even though it’s available on the IMailingListAddresses interface. Generally, humans should never respond directly to this address.
nonmembers= <zope.interface.interface.Attribute object at 0x7f42cc0bcd68 mailman.interfaces.mailinglist.IMailingList.nonmembers>¶
A roster of all the nonmembers of the mailing list.
owner_address= <zope.interface.interface.Attribute object at 0x7f42cc0bca58 mailman.interfaces.mailinglist.IMailingList.owner_address>¶
The address which reaches the owners and moderators of the mailing list. There is no address which reaches just the owners or just the moderators of a mailing list.
owner_chain= <zope.interface.interface.Attribute object at 0x7f42cc0c1438 mailman.interfaces.mailinglist.IMailingList.owner_chain>¶
This mailing list’s owner moderation chain.
When messages are posted to the owners of a mailing list, it first goes through a moderation chain to determine whether the message will be accepted. This attribute names a chain for postings, which must exist.
owner_pipeline= <zope.interface.interface.Attribute object at 0x7f42cc0c1470 mailman.interfaces.mailinglist.IMailingList.owner_pipeline>¶
This mailing list’s owner posting pipeline.
Every mailing list has a processing pipeline that messages flow through once they’ve been accepted for posting to the owners of a mailing list. This attribute names a pipeline for postings, which must exist.
owners= <zope.interface.interface.Attribute object at 0x7f42cc0bccc0 mailman.interfaces.mailinglist.IMailingList.owners>¶
The IUser owners of this mailing list.
This does not include the IUsers who are moderators but not owners of the mailing list.
pass_extensions= <zope.interface.interface.Attribute object at 0x7f42cc0c1710 mailman.interfaces.mailinglist.IMailingList.pass_extensions>¶
Sequence of file extensions to explicitly pass.
Set this attribute to a sequence to change it, or to None to empty it. Pass extensions are consulted after filter extensions, and only if pass_extensions is non-empty.
pass_types= <zope.interface.interface.Attribute object at 0x7f42cc0c16a0 mailman.interfaces.mailinglist.IMailingList.pass_types>¶
Sequence of MIME types to explicitly pass.
These can be either main types or main/sub types. Set this attribute to a sequence to change it, or to None to empty it. Pass types are consulted after filter types, and only if pass_types is non-empty.
personalize= <zope.interface.interface.Attribute object at 0x7f42cc0bcf98 mailman.interfaces.mailinglist.IMailingList.personalize>¶
The type of personalization that is applied to postings.
post_id= <zope.interface.interface.Attribute object at 0x7f42cc0bcf60 mailman.interfaces.mailinglist.IMailingList.post_id>¶
A monotonically increasing integer sequentially assigned to each list posting.
posting_address= <zope.interface.interface.Attribute object at 0x7f42cc0bc9e8 mailman.interfaces.mailinglist.IMailingList.posting_address>¶
The address to which messages are posted for copying to the full list membership, where ‘full’ of course means those members for which delivery is currently enabled.
posting_chain= <zope.interface.interface.Attribute object at 0x7f42cc0c13c8 mailman.interfaces.mailinglist.IMailingList.posting_chain>¶
This mailing list’s posting moderation chain.
When messages are posted to a mailing list, it first goes through a moderation chain to determine whether the message will be accepted. This attribute names a chain for postings, which must exist.
posting_pipeline= <zope.interface.interface.Attribute object at 0x7f42cc0c1400 mailman.interfaces.mailinglist.IMailingList.posting_pipeline>¶
This mailing list’s posting pipeline.
Every mailing list has a processing pipeline that messages flow through once they’ve been accepted for posting to the mailing list. This attribute names a pipeline for postings, which must exist.
preferred_language= <zope.interface.interface.Attribute object at 0x7f42cc0bc898 mailman.interfaces.mailinglist.IMailingList.preferred_language>¶
The default language for communications on this mailing list.
When the list sends out notifications, it will be in this language, unless the recipient is a known user and that user has a preferred language.
process_bounces= <zope.interface.interface.Attribute object at 0x7f42cc0c1940 mailman.interfaces.mailinglist.IMailingList.process_bounces>¶
Whether or not the mailing list processes bounces.
regular_members= <zope.interface.interface.Attribute object at 0x7f42cc0bcdd8 mailman.interfaces.mailinglist.IMailingList.regular_members>¶
An roster of all the IMembers who are to receive regular postings (i.e. non-digests) from the mailing list, regardless of whether they have their delivery disabled or not.
reply_goes_to_list= <zope.interface.interface.Attribute object at 0x7f42cc0bcfd0 mailman.interfaces.mailinglist.IMailingList.reply_goes_to_list>¶
Reply-To: header munging policy.
request_address= <zope.interface.interface.Attribute object at 0x7f42cc0bca90 mailman.interfaces.mailinglist.IMailingList.request_address>¶
The address which reaches the email robot for this mailing list. This robot can process various email commands such as changing delivery options, getting information or help about the mailing list, or processing subscrptions and unsubscriptions (although for the latter two, it’s better to use the join_address and leave_address.
require_explicit_destination= <zope.interface.interface.Attribute object at 0x7f42cc0c14e0 mailman.interfaces.mailinglist.IMailingList.require_explicit_destination>¶
Flag controlling requiring explisit destination.
If require_explicit_destination is True, a post must have the list’s posting address or an acceptable alias in To: or Cc: or be held for moderator approval.
send_goodbye_message= <zope.interface.interface.Attribute object at 0x7f42cc0c1a20 mailman.interfaces.mailinglist.IMailingList.send_goodbye_message>¶
Flag indicating whether a goodbye message should be sent.
Make sure to send one last digest to an address.
This is used when a person transitions from digest delivery to regular delivery and wants to make sure they don’t miss anything. By indicating that they’d like to receive one last digest, they will ensure continuity in receiving mailing lists posts.
- address (IAddress) – The address of the person receiving one last digest.
- delivery_mode (DeliveryMode) – The type of digest to receive.
send_welcome_message= <zope.interface.interface.Attribute object at 0x7f42cc0c19e8 mailman.interfaces.mailinglist.IMailingList.send_welcome_message>¶
Flag indicating whether a welcome message should be sent.
subject_prefix= <zope.interface.interface.Attribute object at 0x7f42cc0bc8d0 mailman.interfaces.mailinglist.IMailingList.subject_prefix>¶
The text to insert at the front of the Subject field.
When messages posted to this mailing list are sent to the list subscribers, the Subject header may be rewritten to include an identifying prefix. Typically this prefix will appear in square brackets and the default value inside the brackets is taken as the list’s display name. However, any value can be used, including the empty string to prevent Subject header rewriting.
subscribe(subscriber, role=<MemberRole.member: 1>)¶
Subscribe the given address or user to the mailing list.
- subscriber (IUser or IAddress) – The address or user to subscribe to the mailing list. The user’s preferred address receives deliveries, if she has one, otherwise no address for the user appears in the rosters.
- role (MemberRole) – The role being subscribed to (e.g. a member, owner, or moderator of a mailing list).
The member object representing the subscription.
- AlreadySubscribedError – If the address or user is already subscribed to the mailing list with the given role. Note however that it is possible to subscribe an address to a mailing list with a particular role, and also subscribe a user with a matching preferred address that is explicitly subscribed with the same role.
- InvalidEmailAddressError – If the address being subscribed is the list’s posting address.
subscribe_address= <zope.interface.interface.Attribute object at 0x7f42cc0bcb70 mailman.interfaces.mailinglist.IMailingList.subscribe_address>¶
Deprecated address to which subscription requests may be sent. This address is provided for backward compatibility only. See join_address for the preferred alias.
subscribers= <zope.interface.interface.Attribute object at 0x7f42cc0bceb8 mailman.interfaces.mailinglist.IMailingList.subscribers>¶
An iterator over all IMembers subscribed to this list, with any role.
subscription_policy= <zope.interface.interface.Attribute object at 0x7f42cc0bce48 mailman.interfaces.mailinglist.IMailingList.subscription_policy>¶
The policy for subscribing new members to the list.
unsubscribe_address= <zope.interface.interface.Attribute object at 0x7f42cc0bcba8 mailman.interfaces.mailinglist.IMailingList.unsubscribe_address>¶
Deprecated address to which unsubscription requests may be sent. This address is provided for backward compatibility only. See leave_address for the preferred alias.
unsubscription_policy= <zope.interface.interface.Attribute object at 0x7f42cc0bce80 mailman.interfaces.mailinglist.IMailingList.unsubscription_policy>¶
The policy for unsubscribing members from the list.
usenet_watermark= <zope.interface.interface.Attribute object at 0x7f42cc0c1b70 mailman.interfaces.mailinglist.IMailingList.usenet_watermark>¶
The NNTP server’s message number of the last post gated to the list.
volume= <zope.interface.interface.Attribute object at 0x7f42cc0c1198 mailman.interfaces.mailinglist.IMailingList.volume>¶
A monotonically increasing integer sequentially assigned to each new digest volume. The volume number may be bumped either automatically (i.e. on a defined schedule) or manually. When the volume number is bumped, the digest number is always reset to 1.