summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorklm1998-10-23 03:54:33 +0000
committerklm1998-10-23 03:54:33 +0000
commit7a64a6b9c355b88d7b049ab6583b3bd52ce24a9a (patch)
treefbc297cab93c22e10012103191d8f7ed52b6248f
parent3d2dfb8f892d2f11e9c91e6abd554ae61c26f548 (diff)
downloadmailman-7a64a6b9c355b88d7b049ab6583b3bd52ce24a9a.tar.gz
mailman-7a64a6b9c355b88d7b049ab6583b3bd52ce24a9a.tar.zst
mailman-7a64a6b9c355b88d7b049ab6583b3bd52ce24a9a.zip
.GetListIdentifier(): new routine for proposed maillist "list-id"
header, according to RFC draft-chandhok-listid-02. Changes to Deliverer.py use this in the header.
-rw-r--r--Mailman/MailList.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index a7723d9a6..1bd8b3be7 100644
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -85,6 +85,11 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin,
def GetListEmail(self):
return '%s@%s' % (self._internal_name, self.host_name)
+ def GetListIdentifier(self):
+ """Return the unique (RFC draft-chandhok-listid-02) identifier."""
+ return ("%s <%s.%s>" %
+ (self.description, self._internal_name, self.host_name))
+
def GetRelativeScriptURL(self, script_name):
prefix = '../'*Utils.GetNestingLevel()
return '%s%s/%s' % (prefix,script_name, self._internal_name)