Hi.

On Tue, 09 Feb 2016 11:28:21 -0800
Gary Roach <gary719_li...@verizon.net> wrote:

> Hi all;
> 
> I am plagued with junk mail with non-asci characters in the subject 
> line. There is a "Subject Regex Match" filter in the message filter 
> applicateion in icedove. I would like to filter out all messages with 
> non-ascii characteristics in the subject. I have tried [\x126-\x255], 
> [^[\x00-\x75]], [\x76-\xFF] and [^[:ascii:]]. None work. I can't find 
> documentation for this function. Since there are several different 
> flavors of regex I really don't know what I am doing. Can anyone help.

Icedove is based on libxul, and libxul is using libpcre for regular
expression support. pcrepattern(3) describes some really nice patterns
that are worth trying in your case.

For example:

[^\p{Latin}|\p{Common}]

Of course, if it does not work (I don't use Icedove myself) - you can
assume that this "Subject Regex Match" does not even try to decode
actual Subject field (hint - it's not a pretty sight unless it's pure
ASCII), and try this instead:

^=\?[^\?]+\?(b|u)

Reco

Reply via email to