summaryrefslogtreecommitdiff
path: root/Mailman/MailCommandHandler.py
diff options
context:
space:
mode:
authorklm1998-04-07 04:20:27 +0000
committerklm1998-04-07 04:20:27 +0000
commite0586b2282fcf3375aa75f7619f1ccfce8dfe909 (patch)
treeb3039f02dcd2ffa3f4750acfbba8ad785932ec18 /Mailman/MailCommandHandler.py
parent12e02e8b3f0bf6782fb4084c36f9f74884d16bcf (diff)
downloadmailman-e0586b2282fcf3375aa75f7619f1ccfce8dfe909.tar.gz
mailman-e0586b2282fcf3375aa75f7619f1ccfce8dfe909.tar.zst
mailman-e0586b2282fcf3375aa75f7619f1ccfce8dfe909.zip
Refined the 'info' mail command to indicate the list web page, present
the description a bit more tidily.
Diffstat (limited to 'Mailman/MailCommandHandler.py')
-rw-r--r--Mailman/MailCommandHandler.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/Mailman/MailCommandHandler.py b/Mailman/MailCommandHandler.py
index e5d8d9f1e..6ffbfaed2 100644
--- a/Mailman/MailCommandHandler.py
+++ b/Mailman/MailCommandHandler.py
@@ -242,16 +242,26 @@ class MailCommandHandler:
"use the 'lists' command\n"
"to get info for all the lists.")
return
+
if self.private_roster and not self.IsMember(mail.GetSender()):
self.AddError("Private list: only members may see info.")
return
- self.AddToResponse("Here is the info for list %s:" % self.real_name)
+ self.AddToResponse("\nFor more complete info about %s, including"
+ " background" % self.real_name)
+ self.AddToResponse("and instructions for subscribing to and"
+ " using it, visit:\n\n\t%s\n"
+ % self.GetScriptURL('listinfo'))
+
if not self.info:
- self.AddToResponse("No information on list %s found." %
+ self.AddToResponse("No other details about %s are available." %
self.real_name)
else:
- self.AddToResponse(self.info)
+ self.AddToResponse("Here is the specific description of %s:\n"
+ % self.real_name)
+ # Put a blank line between the paragraphs, as indicated by CRs.
+ self.AddToResponse(string.join(string.split(self.info, "\n"),
+ "\n\n"))
def ProcessWhoCmd(self, args, cmd, mail):
if len(args) != 0: