[Mailman-Users] Remove web ref from Help File

Mark Sapiro mark at msapiro.net
Mon Feb 9 18:26:10 CET 2009


Jeff Grossman wrote:

>Is it possible to remove the web reference from the e-mail help file?  I
>have changed the help.txt template, but the one line about your options
>after the results line is not in that file.  Is that in the source
>somewhere?  Here is an example of the file:


If the sender of the 'help' command is a list member, reference to the
member's options page is added by Mailman/Commands/cmd_help.py via the
following code:

    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)
            # Get a blank line in the output.
            res.results.append('')
            break


You could remove that code, comment it out or replace

        if mlist.isMember(sender):

with

        if False:

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list