Andrei wrote:

>Thanks, Mark. I'm trying to use this just for one of the lists.
>
>I added MyHandler.py in /var/lib/mailman/Mailman/Handlers, and in
>config_list added
>mlist.pipeline = [ 'Replybot', 'MyHandler', 'Moderate', 'ToOutgoing', ]


I'm not sure what you mean by "in config_list added", but you should
create an input file which contains only

mlist.pipeline = [
    'SpamDetect',
    'Approve',
    'Replybot',
    'Moderate',
    'Hold',
    'MimeDel',
    'Scrubber',
    'Emergency',
    'Tagger',
    'CalcRecips',
    'AvoidDuplicates',
    'Cleanse',
    'CleanseDKIM',
    'CookHeaders',
    'MyHandler',
    'ToDigest',
    'ToArchive',
    'ToUsenet',
    'AfterDelivery',
    'Acknowledge',
    'ToOutgoing',
    ]


I.e. it should look like the definition of GLOBAL_PIPELINE in
Defaults.py with the addition of MyHandler immediately before ToDigest
(and the comments removed).

Then you run

config_list -i path/to/above/file test-list


>When I run config.list test-list I get
>
>  File "/usr/sbin/config_list", line 243, in <module>
>    'ToOutgoing',
>NameError: name 'mlist' is not defined


It looks like you may have modified the config_list program itself in
some way rather than specifying the complete pipeline in an input file.

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to