Subject: Re: bug#51733: 27.1; Detect impossible email addresses better

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 19 Jan 2022 14:16:48 +0100

Eli Zaretskii <[email-masked]> writes:

> But From is not the only place where a suspicious address could hide.
> It could also be in the body, or in the quotation parts.  We cannot
> rely on header decoding alone to do this job well.

The scope of the relevant implemented functions are to determine if the
(on-wire) mail headers are suspicious or not, and do so reliably.  We
can add a slew of other functions for other types of DWIM
suspiciousness, of course, but that's outside the remit.

(For instance, if you wish to implement a filter that looks for
suspicious emails, you'd typically find anything that looks like an
email, see whether it can be RFC2047 encoded, encode it, and then call
the -email-suspicious-p function.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no