[Mailman-Users] external archiver second time

Jonas Meurer jonas at freesources.org
Mon Jun 16 19:29:16 CEST 2003

i still 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'

that doesn't work.
how can i do this (showed in shell prompt) for every message mailman
listlurker=`lurker-list -c /etc/lurker/lurker.conf | grep -B2 "^${listname}$" | head -n1`
lurker-import -l $listlurker -m

where ${listname} has to have the value of the listname. to explain the
regex: 'lurker-list -c /etc/lurker/lurker.conf' gives some output
(lists, and their configs). 'grep -B2 "^${listname}$"' greps for a line
that has [linestart]${listname}[linend]. [linestart] is ^ and [linend]
$. grep fetches this and the two lines under it and outputs that. 'head
-n1' gives the last line of the output.
'lurker-import -l $listlurker -m' really is the prompt that needs the
message through stdin.

do you have and idea how to patch mailman doing the above?


Efficiency and progess is ours one more
Now that we have the Neutron bomb
It's nice and quick and clean and gets things done
Kill kill kill kill kill the poor tonight
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.python.org/pipermail/mailman-users/attachments/20030616/d07c7164/attachment.pgp 

More information about the Mailman-Users mailing list