From 1835339 at bugs.launchpad.net Wed Jul 3 23:16:47 2019 From: 1835339 at bugs.launchpad.net (eHWS Team) Date: Thu, 04 Jul 2019 03:16:47 -0000 Subject: [Bug 1835339] Re: Variables in "On demand password reminder" message do not work References: <156220978814.24806.7359173862583302154.malonedeb@soybean.canonical.com> Message-ID: <156221020766.21327.7199581148543877565.launchpad@gac.canonical.com> ** Summary changed: - Variables in "On demand password reminder" Message + Variables in "On demand password reminder" message do not work -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1835339 Title: Variables in "On demand password reminder" message do not work To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1835339/+subscriptions From 1835339 at bugs.launchpad.net Wed Jul 3 23:09:48 2019 From: 1835339 at bugs.launchpad.net (eHWS Team) Date: Thu, 04 Jul 2019 03:09:48 -0000 Subject: [Bug 1835339] [NEW] Variables in "On demand password reminder" message do not work Message-ID: <156220978814.24806.7359173862583302154.malonedeb@soybean.canonical.com> Public bug reported: Dear MailMen, The "On demand password reminder" message is configurable in the "Edit the public HTML pages and text files" menu item, as is the "Welcome email text file" message. However, while the variables/parameters %(listname)s, %(user)s and %(password)s can be used in the "On demand password reminder" message, the variables/parameters %(welcome)s, %(real_name)s, %(host_name)s, %(optionsurl)s do NOT work. When we send out a password reminder to our many users, we would like to include more information, e.g.: - A link to where they can change their list options, which needs %(optionsurl)s - A link to where the list archive is, which needs %(host_name)s and %(real_name)s - The e-mail address of the list, which also needs %(host_name)s and %(real_name)s - etc. Can you enable these variables/parameters so that we can easily customise and configure these messages? PS: It would be great to have a list of all the variables/parameters that can be used in mailman messages! Many thanks, eHWS Team ** Affects: mailman Importance: Undecided Status: New -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1835339 Title: Variables in "On demand password reminder" message do not work To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1835339/+subscriptions From mark at msapiro.net Sun Jul 7 22:47:12 2019 From: mark at msapiro.net (Mark Sapiro) Date: Mon, 08 Jul 2019 02:47:12 -0000 Subject: [Bug 1835339] Re: Variables in "On demand password reminder" message do not work References: <156220978814.24806.7359173862583302154.malonedeb@soybean.canonical.com> Message-ID: <156255403333.25282.13440978609360333874.malone@soybean.canonical.com> 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( 'userpass.txt', {'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. https://bugs.launchpad.net/bugs/1835339 Title: Variables in "On demand password reminder" message do not work To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1835339/+subscriptions