On Sat, Jun 15, 2002 at 11:37:02PM +0100, Sean Rima wrote:

| One thing that I have noticed of late with korean spam is that the
| editor seems to be "Namo WebEditor v5.0". Whilst the software itself
| seems to be reputable, I hazard a guess that it is mot really mean't for
| email

I got a piece of korean spam yesterday that SA (2.20) didn't mark at
all.  It was multipart/alternative with a text/plain and text/html
segment both koi8-r.  My ok_locales setting is "en".

I've taken care of it now with this maildrop snippet :


charsets=`reformime -i | grep '^charset:'` # | sed -e 's/charset://'`
if ( $charsets =~ /(GB[0-9]{4})|koi8-r|ks_c_5601-1987|ISO-[^-]*-JP|big5|EUC-KR/ )
    exit


It allows proper MIME parsing to determine the charsets of the
sub-types, and then drops the incomprehensible (to me) ones.

-D

-- 

Who can say, "I have kept my heart pure;
I am clean and without sin"?
        Proverbs 20:9
 
http://dman.ddts.net/~dman/

Attachment: msg06430/pgp00000.pgp
Description: PGP signature

Reply via email to