summaryrefslogtreecommitdiff
path: root/src/mailman/docs/message.txt
diff options
context:
space:
mode:
authorBarry Warsaw2009-02-09 22:19:18 -0500
committerBarry Warsaw2009-02-09 22:19:18 -0500
commit98c52ea14883f0261fd7a2f2fe8db42d96331ddb (patch)
treea0c5817f4c226ed14b3fe510314e825980b6cb4e /src/mailman/docs/message.txt
parent84a81e4a90349f7116863d2f45cda1ee31b5b3b5 (diff)
downloadmailman-98c52ea14883f0261fd7a2f2fe8db42d96331ddb.tar.gz
mailman-98c52ea14883f0261fd7a2f2fe8db42d96331ddb.tar.zst
mailman-98c52ea14883f0261fd7a2f2fe8db42d96331ddb.zip
Move mailman.Message to mailman.email.Message. Rename Message.get_sender() to
Message.sender (property) and Message.get_senders() to Message.senders (another property). The semantics of .sender is slightly different too; it no longer consults config.mailman.use_envelope_sender. Add absolute_import and unicode_literals to Utils.py, and clean up a few imports.
Diffstat (limited to 'src/mailman/docs/message.txt')
-rw-r--r--src/mailman/docs/message.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mailman/docs/message.txt b/src/mailman/docs/message.txt
index dab9ddf0e..704842fe4 100644
--- a/src/mailman/docs/message.txt
+++ b/src/mailman/docs/message.txt
@@ -12,13 +12,12 @@ When Mailman needs to send a message to a user, it creates a UserNotification
instance, and then calls the .send() method on this object. This method
requires a mailing list instance.
- >>> mlist = config.db.list_manager.create(u'_xtest@example.com')
- >>> mlist.preferred_language = u'en'
+ >>> mlist = create_list(u'_xtest@example.com')
The UserNotification constructor takes the recipient address, the sender
address, an optional subject, optional body text, and optional language.
- >>> from mailman.Message import UserNotification
+ >>> from mailman.email.message import UserNotification
>>> msg = UserNotification(
... 'aperson@example.com',
... '_xtest@example.com',