X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/3f6646c44e476bc281ac639269b3a28d75270ff1..90e7c2b254d33d781ed8f9932713a2edbb775fae:/procmail/attach-mdn diff --git a/procmail/attach-mdn b/procmail/attach-mdn new file mode 100644 index 0000000..3e9a28e --- /dev/null +++ b/procmail/attach-mdn @@ -0,0 +1,14 @@ +# certain crap mailers don't use standard headers to thread messages: +# http://madduck.net/blog/2009.05.20:read-notifications-standards-and-microsoft/ +# this recreates at least the In-Reply-To header, but not the References list. +# Better than nothing. +:0 +* ^Content-class: urn:content-classes:mdn +* !^In-Reply-To: +*$ B ?? ^Original-Message-ID:$RE_EXTRACT_HEADER_VALUE +{ + LOG="attach-mdn: unthreaded MDN in reply to $MATCH$NL" + + :0 fw + |$FORMAIL -A "In-Reply-To: $MATCH" +}