Rule to delete emails with utf-8 encoded subjects

I'm trying to create a mail flow rule which will delete emails whose subject header is utf-8 encoded. What this means is that the email subject would start with  =?utf-8?

However, I can't seem to create a rule that does this.  I Tried:

Subject matches these text patterns ... '=\?utf-8\?'

also tried

A message header matches ...  'Subject' header matches '=\?utf-8\?'

However, both doesn't work.  Any ideas or help would be much appreciated. 

Thanks!

September 7th, 2015 12:24pm

Hi ,

Q1.)Could you please explain us why you are trying to delete the emails which contains the character set "=\?utf-8\?"  in the headers ?

Q2.)Are you getting any spam emails which contains that particular character in the headers ?

Free Windows Admin Tool Kit Click here and download it now
September 7th, 2015 12:53pm

Hi,

Q1 - 99% of my spam have chinese characters in the subject, which use either utf-8, gbk, gb2312, or gb18030.  I don't want to filter based on the encoding of the email as a whole, because there are some ham emails that I receive which are encoded in utf-8, gbk, gb2312, or gb18030.  What i want is to filter emails whose subject alone is encoded in the mentioned character sets. 

Q2 - I'm getting a lot of spam emails containing utf-8 encoding on the subject header, not necessarily on the whole email header.

My suspicion is that the Exchange regex engine does matching based on the encoding of the source.  What I want is for the regex engine to match based on single-byte characters, ignoring any character encodings on the source. 

September 7th, 2015 10:33pm

Hi ,

By using content filter agent You can block those emails based upon the character set .But i would not suggest you to go with that option.

First of all you need to check the anti spamming solution that you are using in your Gateway product.

I would suggest you to  submit those spam email samples to the vendor of your Anti Spam product .So that they will update those samples on their product to block such kind of emails.

Free Windows Admin Tool Kit Click here and download it now
September 8th, 2015 3:37am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics