Deprecated option DEFAULT_HOST_NAME is used in Utils.py

Bug #266014 reported by The-olo
2
Affects Status Importance Assigned to Milestone
GNU Mailman
New
Medium
Unassigned

Bug Description

In Utils.py, in the get_domain() function, a deprecated
configuration option is used: DEFAULT_HOST_NAME.

It has been superseded by DEFAULT_URL_HOST.

DEFAULT_HOST_NAME is now set to None by default.

I'm suggesting the following change in Urils.py, near
line 640:

- hostname = mm_cfg.DEFAULT_HOST_NAME or
mm_cfg.DEFAULT_EMAIL_HOST
+ hostname = mm_cfg.DEFAULT_URL_HOST or
mm_cfg.DEFAULT_EMAIL_HOST

I'm attaching a patch.

[http://sourceforge.net/tracker/index.php?func=detail&aid=875971&group_id=103&atid=100103]

Revision history for this message
The-olo (the-olo) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.