Good question!

One may write the regex backwards: if it matches "fedex" in the address, but 
does not match "FedEx" in the name, then... However, there are many cases where 
this will fail or return false positives.

One may say that fedex is a brand name that only fedex can use, so if the 
pattern matches anywhere in the From string (comment and address), and the last 
Received from IP is not in fedex's spf, then it is spam. This will catch fishes 
like

From: "FedEx invoices invoi...@fedex.com" <fool...@example.com>

Sent from ProtonMail Mobile

On Sun, Jan 14, 2018 at 02:28, Alex <mysqlstud...@gmail.com> wrote:

> Hi, I don't think I fully understand how to use the fuzzy rules with a proper 
> regex: From: "F*e dE x"  That address hardly resembles "Fed Ex", but how 
> general of a rule can we create and still catch variations such as this? I 
> thought something like this would work: header FUZZY_FEDEX From =~ 
> /(?!f.?e.?d.{0,3}e.?x) .? .? .{0,3} .? /i @speedpost.com>

Reply via email to