Get Rid Of SPAM In Gmail

If there’s a message in my Gmail Inbox that’s not written in English, chances are high that it is some sort of spam because almost all my contacts use the English language for email communication.

All foreign language emails get archives in a different folder

gmail spam

 

Now Gmail has an undocumented search operator called lang: to help you search messages in your mailbox that are written in different languages. For instance, lang:ru will show messages written in Russian while lang:zh or lang:zh-tw will return emails that contain Chinese text.

Unlike other Gmail search commands, the language search operator is not always perfect but can still help you remove most of the foreign language emails from the main Inbox very easily. For that to work, just set up a filter like this:

Gmail Spamming

That may look at bit confusing but it’s actually very simple - you first ask Gmail to search all messages that are not in your native language, apply a label to these messages and then move them out of the main Inbox.

Here are the steps involved for creating a language filter in Gmail:

1. Create a new filter in Gmail and copy-paste the following in the "Has Words:" field. Make sure you remove codes for all languages that you normally use for communication.

For instance, if your get emails in English and Hindi, just remove lang:en and lang:hi from the list. Check this page for a complete list languages that can be detected by Google Language API.

lang:af Or lang:am Or lang:ar Or lang:az Or lang:be Or lang:bg Or lang:bh Or lang:bn Or lang:bo Or lang:ca Or lang:chr Or lang:cs Or lang:da Or lang:de Or lang:dv Or lang:el Or lang:en Or lang:eo Or lang:es Or lang:et Or lang:eu Or lang:fa Or lang:fi Or lang:fr Or lang:gl Or lang:gn Or lang:gu Or lang:hi Or lang:hr Or lang:hu Or lang:hy Or lang:id Or lang:Is Or lang:it Or lang:iu Or lang:iw Or lang:ja Or lang:ka Or lang:kk Or lang:km Or lang:kn Or lang:ko Or lang:ku Or lang:ky Or lang:lo Or lang:lt Or lang:lv Or lang:mk Or lang:ml Or lang:mn Or lang:mr Or lang:ms Or lang:mt Or lang:my Or lang:ne Or lang:nl Or lang:no Or lang:Or Or lang:pa Or lang:pl Or lang:ps Or lang:pt-PT Or lang:ro Or lang:ru Or lang:sa Or lang:sd Or lang:si Or lang:sk Or lang:sl Or lang:sq Or lang:sr Or lang:sv Or lang:sw Or lang:ta Or lang:te Or lang:tg Or lang:th Or lang:tl Or lang:tl Or lang:tr Or lang:ug Or lang:uk Or lang:ur Or lang:uz Or lang:vi Or lang:zh Or lang:zh-CN Or lang:zh-TW

 

2. In the next step, say "Skip Inbox" (Archive It) and apply a Label "Foreign Spam". Your Gmail filter is now ready to catch spam. You could say "Delete" instead of "Archiving" but I prefer the latter option to catch false positive, if there’re any.

Gmail’s built-in spam filtering technology is also pretty good at handling foreign language spam but this filter adds another layer of protection to the Inbox so you spend less team cleaning all the junk stuff.[VIA]


If you enjoyed this post, make sure you subscribe to my  RSS Feeds !!

If you enjoyed this post, make sure you subscribe to my E-NewsLetter !!

Posted By: KirubaKaran
Microsoft Certified Professional

There was an error in this gadget