[Mailman-Users] external archiver

Richard Barrett r.barrett at openinfo.co.uk
Mon Jun 16 08:40:30 CEST 2003

At 23:09 15/06/2003, Jonas Meurer wrote:
>hello, i have in my mm_cfg.py:
>PUBLIC_EXTERNAL_ARCHIVER = lurker-index -l `lurker-list -c 
>/etc/lurker/lurker.conf | grep -B2 "^%(listname)s$"|head -n1` -m
>is some thing wrong with this syntax? mailman doesn't restart:

The problem is that in mm_cfg.py you are assigning a value to a Python 
string variable.

You need to either wrap the whole thing in single or double quotes and 
escape any occurrences of the quote type you choose in the body of the string.

In your cae single quotes look to be the best choice, for instance:

PUBLIC_EXTERNAL_ARCHIVER = 'lurker-index -l `lurker-list -c 
/etc/lurker/lurker.conf | grep -B2 "^%(listname)s$"|head -n1` -m'

Whether the resulting command makes any sense is up to you.

>Restarting mailman queue runner: mailmanTraceback (most recent call
>   File "/usr/lib/mailman/bin/mailmanctl", line 105, in ?
>     from Mailman import mm_cfg
>   File "/var/lib/mailman/Mailman/mm_cfg.py", line 73
>     PUBLIC_EXTERNAL_ARCHIVER = lurker-index -l `lurker-list -c
>/etc/lurker/lurker.conf | grep -B2 "^%(listname)s$"|head -n1` -m
>                                                ^
>SyntaxError: invalid syntax
>  mejo

Richard Barrett                                      http://www.openinfo.co.uk

More information about the Mailman-Users mailing list