https://bz.apache.org/SpamAssassin/show_bug.cgi?id=5867

--- Comment #2 from Mark Martinec <mark.marti...@ijs.si> ---
Btw, the rule in 20_head_tests.cf:

  header __FROM_NEEDS_MIME From =~ /[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\xff]/

incorrectly hits on properly MIME-encoded display names (like in
sample messages here). It should be checking raw text (From:raw)
_before_ it gets MIME_decoded. Moreover, it should apply to display name
(and comments) only, as the mail address itself cannot be MIME-encoded
at all - the only allowed form of an e-mail address is UTF-8 (when
mailer supports SMTPUTF8 option).

So the rule should be:

  header __FROM_NEEDS_MIME From:name:raw =~
/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\xff]/

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to