
Anyone know how to write a rule for Mail that filters out Korean, Chinese or Japanese text? And how about filtering out the spam that uses a small picture image in the message? The Mail rule choices don't seem to cover these very common junk messages.
Update - 11:30am
Whoa! Be very careful in trying some of the rule suggestions posted below in comments. I tried the Content-Class suggestions for filtering out Korean and Chinese messages and ALL of my mail got sent to junk. I followed the precise instructions on a link suggested in the comments so something's not quite right.
I'm sure we'll get more comment-posts below and get this figured out but I just want anyone trying these rules to do so carefully.
More later...
I just had a coffee after that last post and thought of a Mail Rule. I can't test it because I don't get Korean junk, just the usual US stuff.
ALL
If content contains
If content does not contain charset=us-ascii
Transfer message to Junk
Try it and see.
Posted by: Jon Claremont at May 8, 2003 09:54 AMIf content contains [html]
But you'll use angle brackets, maybe between shift and z, not square brackets like I did just now and they never showed up.
Posted by: Jon Claremont at May 8, 2003 09:56 AMMike,
Check out this tip from MacOSXHints - I think it addresses your problem:
http://www.macosxhints.com/article.php?story=20030423092620418&query=charset
Posted by: Steve at May 8, 2003 10:30 AMMike,
I forgot something important. DON"T edit the 'Junk' rule as described in the hint I just pointed yo to. Create another rule.
I'll post again later and explain why, but I followed the instructions literally and screwed up the Apple spam filtering. It took me a week to figure out how to restore things.
There's something special about the 'Junk' rule and playing with it seems to have dire consequences!!
Steve
Posted by: Steve at May 8, 2003 10:34 AMIf you never get any legitimate email in Korean or Chinese, you can add a filter for mail whose header contains:
charset="gb2312"
charset="euc-kr"
charset="ks_C_5601-1987"
The first character set listed is Chinese, the other two Korean. Those filters won't eliminate 100% of Chinese and Korean spam, but they should put at good dent in it.
Similar tips also laid out here:
http://www.entourage.mvps.org/rules/rules_junk.html
...with specific rules to filter mail based on the country of sender.
Posted by: Fofer at May 8, 2003 10:37 AM
1 Part of the reason that you're getting so much junk is that your email address is on your site, even though it's 'hidden' behind an 'email me' link it's there and can be harvested by robots.
Change to a link that opens a form for readers to communicate. When they click on 'send' it could use a PHP script on your server to send the contents of the form to your email address. The email address is in the PHP script, not in the form and therefore is secure.
2 Arrange for all your email to be forwarded to your .Mac account. Because .Mac handles a lot of email their filters are always well-tuned and will catch almost all junk. You can still send from your various email addresses and people can still send you email there, but behind the scenes you're laundering it at .Mac.
Any junk that makes it onto your machine and is detected locally can always be automatically forwarded to [email protected] (use a Mail rule) with a polite note saying that this email has been forwarded through their server appears to be junk, and can they please fine tune their detection.
Posted by: Jon Claremont at May 8, 2003 09:36 AM