X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/8dde77c861da2fb8c14e2ce651423691db664f47..151dbda94e83d57109377b2d32b2808da230ed27:/procmail/listquirks diff --git a/procmail/listquirks b/procmail/listquirks index ffb540f..6ceeb00 100644 --- a/procmail/listquirks +++ b/procmail/listquirks @@ -1,10 +1,18 @@ +# for lists with a CC-all policy, add the M-F-T header if none exists. This +# should go together with mutt hooks to unset followup_to: +# +# send-hook . 'set followup_to' +# send-hook '~C git@vger\.kernel\.org' 'unset followup_to' +# :0 +* ! DEST ?? . * ? echo "$EQ_TO" | $EGREP -qif $CONF/cclists +* ! ^Mail-Followup-To: { CORRESPONDENTS=`formail -cxTo: -xCc: -xFrom: | tr -s '\n' ,` - LOG="listquirks: adding M-F-T header for message on list $EQ_TO$NL" + LOG="listquirks: adding M-F-T header for message on list $EQ_TO$NL" :0 fw - |$FORMAIL -a "Mail-Followup-To: $CORRESPONDENTS" + |$FORMAIL -A "Mail-Followup-To: $CORRESPONDENTS" } # vim:ft=procmail