Version 4 (modified by Jamie McClelland, 5 years ago) (diff)


Filter out email in languages I don't speak

Sometimes our email address ends up on spam lists used for sending spam in languages we don't speak. Since it is rare to get a legitimate message in a language you don't speak, filtering out these messages can save you from getting a lot of un-wanted email in your inbox.

If you are not familiar with how to filter your messages, please review our help file on filtering which gives you the basics of how to create filters in our Roundcube mail program. Remember: Filters created in Roundcube apply even if you use a different program.

To create a filter specifically for language, follow these steps.

  • Login to
  • Click the Settings Link in the top right corner of the screen
  • Click the Filters link from the menu
  • Click the plus (+) sign in the bottom left corner of the filters box to create a new filter

All of the above steps are outlined on our filter help page with screen shots.

  • Create the initial rules for your language filter
    • Give your filter a descriptive name
    • Indicate that all the rules must match for the filter to take affect
    • The first drop down shows you the available headers you can match on. Since "X-Spam-Language" is not one of them, select "..." instead and then type in: X-Spam-Language (make sure there are no typos!)
    • Indicate that you want to move the message to your Junk folder if this header does not contain the word "en"

  • Add two more rules to ensure we don't accidentally filter out messages you want
    • Add a rule to indicate that the X-Spam-Language header must exist. This header is only added to messages that are processed by our spam filter. Some messages are skipped, for example if they are sent by another MF/PL member or if they are very large.
    • Add a rule to indicate that the value of the X-Spam-Language header should not be empty. Language detection is guess work and if our software is not sure what the language is, it will leave this header empty. That can happen if the email message is very short or contains a lot of garbage text.

Once you are done, all messages that match will automatically be put in your Junk/Spam folder if they are not in english, even if our spam detector fails to detect them as spam.

Attachments (2)

Download all attachments as: .zip