From: martin f. krafft Date: Tue, 16 Feb 2010 03:01:15 +0000 (+0100) Subject: enable replacing reply-to with m-f-t X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/4d23c229a250dde7ad1a46cab52448f07f153f3e?ds=sidebyside enable replacing reply-to with m-f-t --- diff --git a/procmail/listquirks b/procmail/listquirks index 6ceeb00..8fe4f51 100644 --- a/procmail/listquirks +++ b/procmail/listquirks @@ -13,6 +13,19 @@ LOG="listquirks: adding M-F-T header for message on list $EQ_TO$NL" :0 fw |$FORMAIL -A "Mail-Followup-To: $CORRESPONDENTS" + CORRESPONDENTS +} + +:0 E +* ! DEST ?? . +* ? echo "$EQ_TO" | $EGREP -qif $CONF/replytolists +* $^Reply-To: $EQ_TO +{ + CORRESPONDENTS=`formail -cxTo: -xCc: -xFrom: -xReply-To: | tr -s '\n' ,` + LOG="listquirks: replacing Reply-To with M-F-T for message to list $EQ_TO$NL" + :0 fw + |$FORMAIL -I Reply-To: -A "Mail-Followup-To: $CORRESPONDENTS" + CORRESPONDENTS } # vim:ft=procmail