X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/90af4d50470f9e9b91720fa42f26673293297312..3fc8502a2d7d8c27ca0cf1313f1c349d5986760a:/procmail/get-msgid diff --git a/procmail/get-msgid b/procmail/get-msgid index 4a0d251..02b10b1 100644 --- a/procmail/get-msgid +++ b/procmail/get-msgid @@ -1,12 +1,12 @@ :0 -*$ ^Message-Id:$RE_EXTRACT_HEADER_VALUE +*$ ^Message-Id:$RE_SPACE*\/$RE_NOT_SPACE+ { MSGID="$MATCH" } :0 -* MSGID ?? ^$RE_SPACE*$|^<>$ +*$ MSGID ?? ^$RE_SPACE*$|^<>$ { :0 - * ^Resent-Message-Id:$RE_EXTRACT_HEADER_VALUE + *$ ^Resent-Message-Id:$RE_SPACE*\/$RE_NOT_SPACE+ { LOGLATER="get-msgid: lacking message-id, using resent-message-id...$NL" :0 fw @@ -21,7 +21,7 @@ } :0 - * ^Message-Id:$RE_EXTRACT_HEADER_VALUE + *$ ^Message-Id:$RE_EXTRACT_HEADER_VALUE { MSGID="$MATCH" } }