X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/7b3a8c28034163635f159f9b2c2aaff93b592f6e..HEAD:/procmail/listquirks diff --git a/procmail/listquirks b/procmail/listquirks index ea729a8..cfd67eb 100644 --- a/procmail/listquirks +++ b/procmail/listquirks @@ -5,6 +5,7 @@ # send-hook '~C git@vger\.kernel\.org' 'unset followup_to' # :0 +* ! DEST ?? . * ? echo "$EQ_TO" | $EGREP -qif $CONF/cclists * ! ^Mail-Followup-To: { @@ -12,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