spamassassin-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Hardin <jhar...@impsec.org>
Subject Re: regexp dealing with display name don't work
Date Fri, 27 Apr 2018 19:59:14 GMT
On Fri, 27 Apr 2018, Joƫlle Pfeffer wrote:

> I have progressed.
>
> If my rule is
> header REGLE_HF002 From:name =~ /@A/i
>
> e-mails containing
> From: @A < jopfeffer@free.fr >
> or
> From: "@AB" < jopfeffer@free.fr >
> or
> From: "@Ab" < jopfeffer@free.fr >
> are not blocked
>
> but if my rule is
> header REGLE_HF002 From:name =~ /@.b/i
>
> e-mails containing
> From: "@Ab" < jopfeffer@free.fr >
> or
> From: "@ABc" < jopfeffer@free.fr >
> are blocked

Are you specifically looking for from name that has an @-sign in it?

Please provide a complete example of a real From header that you want to 
match.


-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   You do not examine legislation in the light of the benefits it
   will convey if properly administered, but in the light of the
   wrongs it would do and the harms it would cause if improperly
   administered.                                  -- Lyndon B. Johnson
-----------------------------------------------------------------------
  4 days until May Day - Remember 110 million people murdered by Communism
Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message