a small problem with mailman

Todd Zullinger tmz at pobox.com
Tue Jul 3 00:18:14 UTC 2007


Scott Berry wrote:
> I have a bit of a problem with mailman here.  When I go to use
> "/usr/lib/mailman/bin/update" and after setting everything the way
> that the mm_cfg.py says I get this trace back error:

> [root at pilotalk ~]# /usr/lib/mailman/bin/update
> Traceback (most recent call last):
>   File "/usr/lib/mailman/bin/update", line 49, in <module>
>     from Mailman import mm_cfg
>   File "/usr/lib/mailman/Mailman/mm_cfg.py", line 80, in <module>
>     DEFAULT_URL_HOST = www.pilotalk.com
> NameError: name 'www' is not defined
> 
> I am assuming the lines of the mm_cfg.py which it is having trouble
> with are these three lines:
> 
> DEFAULT_URL_HOST = www.pilotalk.com
> DEFAULT_EMAIL_HOST = pilotalk.com
> add_virtualhostwww.pilotalk.com, pilotalk.com
> 
> Any help would be appreciated.

You just need to quote the values.  Instead of what you have, try:

DEFAULT_URL_HOST = 'www.pilotalk.com'
DEFAULT_EMAIL_HOST = 'pilotalk.com'
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

You can use the variable names (DEFAULT_*_HOST) so you don't have to
change them in two places some day. :)

P.S.: This message had HTML and plain text versions.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If the world didn't suck, we'd all fall off.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070702/bb7a392c/attachment-0001.sig>


More information about the fedora-list mailing list