[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: List Ettiquette



Chris Jones <cjns1989@gmail.com> writes:
>On Sat, Aug 29, 2009 at 06:53:41PM EDT, ghe wrote:
>>
>> :0Hfhw
>> * ^Return-Path: <bounce-debian-user=ghe=slsware.com@lists.debian.org>
>> | $FORMAIL -i "Reply-To: <debian-user@lists.debian.org>"

>Thanks for the idea. 

>I will take a look at my .procmailrc and see how I can conversely
>eliminate these noxious Reply-to headers before they cause further
>damage.

I feed all my mailing list subscriptions to local news groups, and part
of that is to feed all incoming list emails through a python script.

I just recently added the feature you're looking for, so maybe this is
useful. Here's a snippet that should work as a self-contained script on
stdin and stdout:

#!/usr/bin/env python
import email, sys
m = email.message_from_file(sys.stdin)
# Remove Reply-To if it is to the list
if m.has_key("Reply-To") and m.has_key("List-Post"):
    listpost = m['List-Post'].replace("mailto:";, "")
    if m['Reply-To'].find(listpost) != -1:
        del m['Reply-To']
print m


Reply to: