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
-
Start at the Pine MAIN MENU screen and select SETUP by pressing S.
-
On the SETUP screen select Rules by pressing R and then F to select Filter Rules.
-
On the SETUP FILTERING RULES screen press A to add a rule.
-
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.
-
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.
-
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.
-
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.
-
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'