Hide Forgot
Description of problem: Because of the processing sequence in bin/newlist and Mailman/Cgi/create.py, the initial archive index page for a new list is built with a link to the listinfo page with host name DEFAULT_URL_HOST (hostname(1)) instead of the host name supplied to newlist with -u (urlhost). Version-Release number of selected component (if applicable): mailman-2.1.12-17.el6.x86_64 How reproducible: Everytime, eg. "/usr/lib/mailman/bin/newlist --urlhost=foo.bar mailman". The result in the index.html is whatever hostname(1) returns, if no defaults are changed in the configuration. Actual results: Initial 'emptyarchive' page contains hostname rather urlhost in listinfo page link. Expected results: Initial 'emptyarchive' page contains urlhost listinfo page link if specified; if not then DEFAULT_URL_HOST/hostname(1) content is used.
I cross-filed case 00609370 in the Red Hat customer portal for this issue.
Created attachment 567073 [details] mailman-2.1.12-newlist-urlhost.patch The attached patch solves this issue for us, please apply.
Thanks for the patch. I've tested it and it fixes the bug you described.
I know, it's a patch from upstream - that is slightly adapted for 2.1.12.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause: urlhost argument was not handled in newlist script Consequence: links on archive page was not created with proper URLs. Hostname was used instead. Fix: urlhost is now handled in newlist script. Result: If urlhost is provided, it's used instead of hostname on archive page.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-1474.html