X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/655b4a2084e1de3c6a9b11374e2cc3e8dce3a6eb..4d23c229a250dde7ad1a46cab52448f07f153f3e:/procmail/listquirks 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