School of Computing

E-Mail Spam Checking

Introduction

This document describes how to setup Pine to filter spam into a separate folder.
It does this by examining headers added to the email by the School of Computing spam checking facilities in place on the School of Computing servers.

Filtering mail with Exim

You might want to filter the mail before it arrives in pine. You can do this by getting exim to filter mail to ~/mail/pinefolder as it gets delivered. The documentation here talks about doing this. If you do this you won't need to follow the steps below.

Setting up the Pine to filter mail

  1. Start at the Pine MAIN MENU screen and select SETUP by pressing S.

    MAIN MENU screen

  2. On the SETUP screen select Rules by pressing R and then F to select Filter Rules.

    SETUP screen

  3. On the SETUP FILTERING RULES screen press A to add a rule.

    SETUP FILTERING RULES screen

  4. On the ADD A FILTERING RULE screen, hit enter and enter the nickname of the filter rule 'Spam' and hit enter again. On Current folder type make sure a specific Folder is enabled and that this is INBOX.

    ADD A FILTERING RULE screen

  5. In the FILTERED MESSAGE CONDITIONS BEGIN HERE section select 'To Pattern' and press X, this will then ask you for the name of an extra header field, insert 'X-UKC-CSSpamCheck-Flag' then enter. Then hit enter to set it's value to "" then press enter.

    ADD A FILTERING RULE/MESSAGE CONDITIONS

  6. In The ACTIONS BEGIN HERE section under the Filter Action heading select Move by pressing enter on the option then select Folder List. Set this to spam by pressing enter and inserting 'Spam'. Then press enter again. This will set the spam to be filtered to a folder called spam.

    ADD A FILTERING RULE/ACTIONS BEGIN HERE

  7. Press E to exit setup, answer Y to commit changes. Answer Y to "Folder 'spam' in <Mail> doesn't exist. Create?". You should be returned to the SETUP FILTERING RULES screen.
  8. Press E to exit setup, answer Y to commit changes. You should be returned to the Main Menu screen and a '[Filtering Rule Setup changes saved]' message should be displayed'

    MAIN MENU/Filtering Rule Setup changes saved

School of Computing, University of Kent, Canterbury, Kent, CT2 7NF

Enquiries: +44 (0)1227 824180 or contact us.

Last Updated: 07/11/2011 12:46