FAQ | Frequently Asked Questions

brought to you by your friendly
UC Davis Earth and Planetary Sciences Department Computing Support Team

Q: How can I control what Mail does with junk mail based on the UCD Spam Score?
A: The UC Daivs email hygene systems marks incoming email messages with a spam score. You can create a rule in your mail program to filter your email based on this score. Here's how to do this in Apple Mail and Thunderbird.

Filters in Apple Mail

  1. Open Mail

  2. Select MailPreferences

  3. Select Junk Mail

  4. Make sure that junk mail filtering is enabled and that When junk mail arrives: is set to Move it to the junk mailbox
    mail-preferences-junk-mail
  5. Select Rules

  6. Click Add Rule

  7. In Descriptopn enter: UCD Spam Score

  8. In the conditions section pop-up click and hold Any Recipient and scroll down to Edit Header List

  9. In the Message Headers window click the plus sign (+) and, enter: X-Ucd-Spam-Score
    mail-message-headers
  10. Click OK

  11. Back in the condition section, select from the pop-up X-Ucd-Spam-Score

  12. Select Contains

  13. In the text box enter 5 asterisks: *****
    This corresponds to a spam score of 5 or higher. The more spammy a message is the more asterisks it will have. Messages with a score from 5 to 14.9 are likely to be spam; messages with a score of ~7 or more are virtually certain to be spam. For more detail see Managing & Filtering Spam and Creating Spam filters in DavisMail

  14. In the actions section select: Move Message to mailbox: Junk

  15. Click OK
    mail-rule-spam-score-5


Filters in Thunderbird

  1. Open Thunderbird

  2. Select ThunderbirdToolsMessage Filters

  3. In the Message Filters window click New
    thunderbird-message-filters
  4. Name the filter UCD Spam Score
    thunderbird-manage-filters-customize
  5. In the Match section, click and hold Subject, scroll down and select Customize

  6. In New message header enter X-Ucd-Spam-Score and click Add then OK
    thunderbird-manage-filters-new-message-header-2
  7. Back in the Match section, The criteria should be X-Ucd-Spam-Score contains:

  8. In the text box enter 5 asterisks: *****

  9. In Perform these actions select Move Message to and select your junk mail folder
    thunderbird-manage-filters-move-message-to
    The five asterisks correspond to a spam score of 5 or higher. The more spammy a message is the more asterisks it will have. Messages with a score from 5 to 14.9 are likely to be spam; messages with a score of ~7 or more are virtually certain to be spam. For more detail see Managing & Filtering Spam and Creating Spam filters in DavisMail

  10. Click OK

  11. Your Message Filters window should now look like this:
    thunderbird-message-filters-done