X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/0f4bcee75353935ff9bc605f7e0b31d12e302605..HEAD:/procmail/listquirks diff --git a/procmail/listquirks b/procmail/listquirks index 6ceeb00..cfd67eb 100644 --- a/procmail/listquirks +++ b/procmail/listquirks @@ -13,6 +13,22 @@ LOG="listquirks: adding M-F-T header for message on list $EQ_TO$NL" :0 fw |$FORMAIL -A "Mail-Followup-To: $CORRESPONDENTS" + CORRESPONDENTS +} + +# for lists that munge reply-to, let's get rid of it and instead add a M-F-T +# header with all 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