4.53. Why has my change to mm_cfg.py been ignored?

After making any change in mm_cfg.py, you must restart Mailman with

  ${PREFIX}/bin/mailmanctl restart

in order to pick up the changes.

While this is necessary, it is not sufficient to change the attributes of existing lists and archives.

As an example, if you had changed the DEFAULT_URL_PATTERN record in etc/mailman/mm_cfg.py from :

  DEFAULT_URL_PATTERN = 'http://%s/cgi-bin/mailman/'

... to:

  DEFAULT_URL_PATTERN = 'https://%s/cgi-bin/mailman/'

... then you will also need to run:

  ${PREFIX}/bin/withlist -l -r fix_url crochet-discuss

... where 'crochet-discuss' is the name of the mailing list. Or more likely run:

  ${PREFIX}/bin/withlist -l -a -r fix_url

to fix all the existing lists.

After you have done this (after first restarting mailmanctl), the links in the generated admin screen (for example, https://www.foo.org/mailman/admin/crochet-discuss/general) will correctly begin with 'https://', instead of 'http://', that is, the generated html will now look similar to:

  ...
  <li><a href="https://www.foo.org/mailman/admin/crochet-discuss/general" > <strong>[General Options]</strong></a>
  <li><a href="https://www.foo.org/mailman/admin/crochet-discuss/passwords" > Passwords</a>
  <li><a href="https://www.foo.org/mailman/admin/crochet-discuss/language" > Language&nbsp;options</a>
  ...

Likewise, such changes will not affect various URLs in existing archives until the list has been fixed as above and then the archive rebuilt with

  ${PREFIX}/bin/arch --wipe <listname>

Converted from the Mailman FAQ Wizard

This is one of many Frequently Asked Questions.

MailmanWiki: DOC/4.53 Why has my change to mm_cfg.py been ignored? (last edited 2015-01-31 02:36:58 by msapiro)