[Mailman-Users] filtering posts to a list
Ed Leafe
ed at leafe.com
Wed Sep 3 04:32:32 CEST 2003
On Tuesday, September 2, 2003, at 01:16 PM, Marty Galyean wrote:
> How would I insert an arbitrary perl filter for list posts? I want to
> filter out quoted instances of post footers in replies. They really
> add
> up when users don't trim and yet because the pattern is static it seem
> onerous for the uses to have to trim the footer out of posts all the
> time.
>
> I'm imagining the equivalent of a .forward file with a pipe to a perl
> script in it, that writes to the mbox file.
>
> What is the sanest direction to take?
You can modify the posting alias to pass the message through your perl
script before it gets to Mailman. I use a Python script I wrote for a
similar purpose. The alias for my list looks like:
profox: "|python
/home/mailman/stripQuote.py|/home/mailman/mail/mailman post profox"
___/
/
__/
/
____/
Ed Leafe
http://leafe.com/
http://opentech.leafe.com
More information about the Mailman-Users
mailing list