I noticed that dumpdb on a list config file gives

> 'filter_prog': '',

I also noticed that Defaults.py has this:

> DEFAULT_FILTER_PROG = ''                # Currently not used!

But ...

MailList.py has this bit of code:

>         self.filter_prog = mm_cfg.DEFAULT_FILTER_PROG

... and scripts/post has this:

>    # Perhaps flow the message text through a filter program
>    prog = mlist.filter_prog
>    if prog:
>        import os, __main__
>        file = os.path.join(mm_cfg.VAR_PREFIX, 'filters', prog)
>        try:
>            execfile(file)
>            msg = Message.Message(StringIO(__main__.mailman_text))
>        except:
>            pass

Does this work?  If I set that attribute to a program such as stripmime,
will it do the right thing?  It looks like I have to put it into
../filters ...

Does anyone else strip MIME out of incoming messages?

/jordan


------------------------------------------------------
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to