summaryrefslogtreecommitdiff
path: root/src/mailman/pipeline
diff options
context:
space:
mode:
authorBarry Warsaw2009-07-16 22:36:06 -0400
committerBarry Warsaw2009-07-16 22:36:06 -0400
commit1bfc7f302f2730a679b2a4a103c2978d8e7c70ae (patch)
tree3d69d43841dcf838e9778d2e83cc3e58a7b9ed20 /src/mailman/pipeline
parentac3af23142c9b2417759f90837d68e15866b6793 (diff)
downloadmailman-1bfc7f302f2730a679b2a4a103c2978d8e7c70ae.tar.gz
mailman-1bfc7f302f2730a679b2a4a103c2978d8e7c70ae.tar.zst
mailman-1bfc7f302f2730a679b2a4a103c2978d8e7c70ae.zip
Wow. Put domains into the database.
Add an IDomainManager and a global domain manager which can be gotten by adapting the global config object. Add an IDomainCollection interface for exposing the domain manager onto the API.
Diffstat (limited to 'src/mailman/pipeline')
-rw-r--r--src/mailman/pipeline/docs/cook-headers.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman/pipeline/docs/cook-headers.txt b/src/mailman/pipeline/docs/cook-headers.txt
index ae276a79a..2c6381c8f 100644
--- a/src/mailman/pipeline/docs/cook-headers.txt
+++ b/src/mailman/pipeline/docs/cook-headers.txt
@@ -221,11 +221,11 @@ header.
---end---
There are some circumstances when the list administrator wants to explicitly
-set the List-ID header.
+set the List-ID header. Start by creating a new domain.
- >>> from mailman.domain import Domain
- >>> domain = Domain(u'mail.example.net')
- >>> config.domains[domain.email_host] = domain
+ >>> from mailman.interfaces.domain import IDomainManager
+ >>> manager = IDomainManager(config)
+ >>> domain = manager.add(u'mail.example.net')
>>> mlist.host_name = u'mail.example.net'
>>> process(mlist, msg, {})