[Bug 1835339] Re: Variables in "On demand password reminder" message do not work

Mark Sapiro mark at msapiro.net
Sun Jul 7 22:47:12 EDT 2019

The variables for substitution in the various templates are in general,
the only ones used in the default template. For a definitive list do
something like `grep -r template_name /path/to/Mailman` to find where
the template is used and then look at the substitution dictionary.

E.g., `grep -r userpass.txt /path/to/Mailman

gives hits at Mailman/Deliverer.py and Mailman/Cgi/edithtml.py. The
latter is for the "Edit the public HTML pages and text files" interface
and the relevant piece in the former is:

        text = Utils.maketext(
            {'user'       : cpuser,
             'listname'   : self.real_name,
             'fqdn_lname' : self.GetListEmail(),
             'password'   : password,
             'options_url': self.GetOptionsURL(user, absolute=True),
             'requestaddr': requestaddr,
             'owneraddr'  : self.GetOwnerEmail(),
            }, lang=lang, mlist=self)

You can edit the code to add any substitutions you like, but it is
unlikely that this will be implemented in the distribution.

** Changed in: mailman
   Importance: Undecided => Wishlist

You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.

  Variables in "On demand password reminder" message do not work

To manage notifications about this bug go to:

More information about the Mailman-coders mailing list