[Rspamd-Users] multimap and header lines
Valentijn Sessink
valentijn at sessink.nl
Tue Nov 19 12:21:52 UTC 2024
Adding to my own quest for the right regexp:
- rspamd seems to normalize headers (multiline header ending <LF>,
normal headers <CR><LF>), but I'm not 100% sure here, it's only what I'm
seeing in the logs.
- /^X-Someheader: Somevalue$/m seems *not* to match a header line that
has X-Someheader with Somevalue for value in an e-mail, because of smtp
line endings.
The correct regexp seems to be:
/(*CRLF)^X-Someheader: Somevalue$/m
... but to be on the safe side,
/(*ANYCRLF)^X-Someheader: Somevalue$/m
... could be the safer bet. (Consult your regional RFC5322 specialist
for more information, and note that only in theory, theory and practice
are the same)
I still may be wrong, but this is what PCRE tells me.
Best regards,
Valentijn
More information about the Users
mailing list