From 630083b4d08d6133118125f61958267fb88f350a Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Sun, 12 May 2002 01:42:57 +0000 Subject: process(): Suggestion by Aaron Birenboim to include the member's options page url in the help message if the sender is a member of the list. --- Mailman/Commands/cmd_help.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Mailman/Commands/cmd_help.py') diff --git a/Mailman/Commands/cmd_help.py b/Mailman/Commands/cmd_help.py index 5f5b5c579..97af851c9 100644 --- a/Mailman/Commands/cmd_help.py +++ b/Mailman/Commands/cmd_help.py @@ -38,6 +38,18 @@ def gethelp(mlist): def process(res, args): # Get the help text introduction mlist = res.mlist + # Since this message is personalized, add some useful information if the + # address requesting help is a member of the list. + msg = res.msg + for sender in msg.get_senders(): + if mlist.isMember(sender): + memberurl = mlist.GetOptionsURL(sender, absolute=1) + urlhelp = _( + 'You can access your personal options via the following url:') + res.results.append(urlhelp) + res.results.append(memberurl) + res.results.append('') + break # build the specific command helps from the module docstrings modhelps = {} import Mailman.Commands -- cgit v1.2.3-70-g09d2