summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2000-09-15 19:19:17 +0000
committerbwarsaw2000-09-15 19:19:17 +0000
commita282e91c97524f062dc340ea64b925bad088d8af (patch)
treef6d7e78bc06b28cb00159548aac31d155f365271
parent4a45bb1efbfe083029ecb80b7d020ea00b17eece (diff)
downloadmailman-a282e91c97524f062dc340ea64b925bad088d8af.tar.gz
mailman-a282e91c97524f062dc340ea64b925bad088d8af.tar.zst
mailman-a282e91c97524f062dc340ea64b925bad088d8af.zip
GetListIdentifier(): Don't include the description if it's empty
(saves an extra leading space in that case).
-rw-r--r--Mailman/MailList.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index 64f04b7f7..46d89c3b9 100644
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -184,8 +184,10 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin,
def GetListIdentifier(self):
"""Return the unique (RFC draft-chandhok-listid-02) identifier."""
- return ("%s <%s.%s>" %
- (self.description, self._internal_name, self.host_name))
+ id = '<%s.%s>' % (self._internal_name, self.host_name)
+ if self.description:
+ id = self.description + ' ' + id
+ return id
def GetScriptURL(self, scriptname, absolute=0):
return Utils.ScriptURL(scriptname, self.web_page_url, absolute) + \