[Mimedefang] Rejecting Cyrillic

Kevin A. McGrail kmcgrail at pccc.com
Fri Apr 17 09:07:23 EDT 2009


On Fri, Apr 17, 2009 at 11:16:14AM +0200, Jan Pieter Cornet wrote:
> On Thu, Apr 16, 2009 at 10:37:33PM -0400, Kevin A. McGrail wrote:
> > Richard,
> > 
> > I've been looking at this and the code seems to work but I wonder if you 
> > can't achieve the same result with just a regexp:
> > 
> > if ($Subject =~ /=\?(koi8-r|Windows-1251)\?/i) {
> > }
> 
> No. At least, not if you actually care about legitimate email.

Jan,

In spot checking my uncaught SPAM, I couldn't find a case that this didn't work for.  Can you check your headers manually and see if you can find an example of Russian SPAM that doesn't use this format?

>From my experience, you'll need to make sure you view text source as most MUAs will decode the header at least somewhat.

Regards,
KAM



More information about the MIMEDefang mailing list