You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Bob George <ma...@ttlexceeded.com> on 2004/03/11 05:15:27 UTC

Fixing Reply-to: for Outlook use (was Re: Anti-Spoofing (was Re: Opinions About SPF))

jdow wrote:

>If you use procmail then try this recipe:
>--9<--
># Tag SA-talk list mail
>:0 Efw
>* ^List-Id:
>.*(spamassassin-talk\.lists\.sourceforge\.net|spamassassin\.apache.\org)
>| formail -A "$PROCMAILHEADER SA-talk list mail not processed."
>
># NEW sa-talk list
>:0 fw
>* ^List-Id: .*spamassassin\.apache\.org
>| formail -A "$PROCMAILMATCH SpamAssassin Talk list" -i "Reply-To:
>spamassassin-users@incubator.apache.org"
>--9<--
>
>Fixes the Reply-To: for convenience. (Mind possible wraps.)
>{^_-}
>  
>
I recently stuck this rule near the top of my procmailrc for my mailing 
list subscription account:

--- cut here --- cut here ---

# Get list reply address
: 0
* ^list-(post|ID):
{      
        REPLYTO=`formail -x list-post: | sed 's/mailto://'`
         
        :0 fw
        | formail -i "Reply-To: $REPLYTO"
}

--- cut here --- cut here ---

That does it all in one place in case I need to tweak it for new headers 
to match, and gets rid of those -i "Reply-To:" insertions with formail 
(which I always copied to new entries by accident. :) It should also 
work, or at least minimize changes required if the list moves. This way, 
it's a conscious decision to reply to the original poster.

Comments (other than GET A NEW CLIENT!) appreciated.

- Bob