-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Message-ID is not recognized #124
Comments
I had a similar issue where I specifically tried to set a variable to the Message-ID. Please try:
Also, keep in mind that even if this rule matches, the mail evaluation loop will not stop because you have a |
Thanks for the suggestion, I'm trying it. |
I had a similar issue; after some basic testing, my gut tells me it's somehow related to multi-line I worked around it by using a different key -- total hack. |
YAAAY I finally made some progress on this Apparently some MSFT Exchange configurations are sending messages like
note the TWO (2) spaces after the colon. In those cases, the following fdm rule is matching:
I am not familiar enough with RFC822 and RFC2822 to say what is right in this case. Either way, the reality is, MSFT Exchange is doing that 🤷 This is my shameless hack:
|
I can also confirm the same fdm rule matches on MSFT Exchange messages I've seen arrive that look like
(so, multi-line.) |
Any number of spaces after the colon is absolutely permitted: really fdm should be collapsing them to one space. (White space there is not required: for consistency, really fdm should provide a way to canonicalize it somehow. This is doubly important because of the bewildering variety and complexity of types of whitespace permitted in RFC*822. Even procmail provides more tools than fdm in this area, though procmail's implementation -- the various TO_ etc regexes -- is deeply disgusting and absolutely must not be emulated :) ) |
In my fdm.conf I have:
$key = "%[message_id]"
match string $key to "" action "store_to_spam" continue
The Message-ID in the email:
Date: Fri, 17 Feb 2023 15:38:11 +0000
Message-ID:
PA4PR04MB78241F668550B8CC3C149147ADA19@PA4PR04MB7824.eurprd04.prod.outlook.com
Accept-Language: it-IT, en-US
is not recognized by %[message_id], $key is "" .
Thank you for your work.
Maurizio
The text was updated successfully, but these errors were encountered: