[Mailman-Developers] GetScriptURL
Pavel Chytil
pchytil@ece.ogi.edu
Tue, 27 Nov 2001 19:48:48 -0800
Hello,
I have modified may site setting from (in Defaults.py)
# Site-specific settings
DEFAULT_EMAIL_HOST = 'asp.ogi.edu'
DEFAULT_URL_HOST = 'asp.ogi.edu'
DEFAULT_URL_PATTERN = 'http://%s/mailman/'
# For backwards compatibility. Note: DEFAULT_URL_PATTERN must end in a slash!
DEFAULT_HOST_NAME = DEFAULT_EMAIL_HOST
DEFAULT_URL = DEFAULT_URL_PATTERN % DEFAULT_URL_HOST
PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/pipermail/%(listname)s'
to (in mm_cfg.py)
DEFAULT_EMAIL_HOST = 'asp.ogi.edu'
DEFAULT_URL_HOST = 'lists.asp.ogi.edu'
DEFAULT_HOST_NAME = 'lists.asp.ogi.edu'
DEFAULT_URL_PATTERN = 'http://%s/mailman/'
DEFAULT_URL = DEFAULT_URL_PATTERN % DEFAULT_URL_HOST
PUBLIC_ARCHIVE_URL = 'http://lists.asp.ogi.edu/pipermail/%(listname)s'
My goal is to receive email (for example email with help) from
mailman-request@asp.ogi.edu with proper http links
I would expect :
http://lists.asp.ogi.edu/mailman/listinfo/test
but getting
http://asp.ogi.edu/mailman/listinfo/test
My host has name asp.ogi.edu but has several CNAMEs like lists, mail.
I have found that this pretty much depends on function GetScriptURL
(Mailman/MailList.py), where %(listinfo_url)s assign , but since I am not
familiar with Python, it is kind of hopeless for me to try fix something or
understand quickly, so I rather ask.
I have installed Python 2.2 and Mailman 2.1a3 (fresh from cvs)
Thanks for any feed back,
Pavel