A custom filter has to be created. Click on Tools, Message Filters
We have to add a header. Put X-Spam-Flag in the box and click Add.
Now click on OK. The header will be available for use in a filter
Now we can create a rule that takes any mail with X-Spam-Flag having the word YES in it and moves it to the _spam folder on the IMAP server. You may have to create this folder.
Click ok, make sure the filter is enabled and at the top of your list and any mail with this header set should get folders. Be sure to check the folder on occassion and clean it up.
Go to the "ADD A FILTERING RULE" menu:
- Go to the MAIN MENU.
- From the MAIN MENU, type S (SETUP) to go to the SETUP menu.
- From the SETUP MENU, type R (Rules). You will be prompted as follows:
Type of rule setup :
Type f (filter).
- You should now be at the "SETUP FILTERING RULES" menu.
- Type A (Add) to go to the "ADD A FILTERING RULE" menu.
Give the rule a name.
- When you enter the "ADD A FILTERING RULE" menu, you should see the following line highlighted:
Nickname = <No Value Set: using "Filter Rule">
When this line is highlighted, press enter. You will see the following prompt at the bottom of the screen:
Enter the replacement text : Filter Rule
Using the backspace key, backspace over any existing text to the start of the prompt.
Type the name you wish to give the filter and press enter. You should now see the
Nickname line highlighted with the new name that you just typed.
Add the spam header to search on.
- While the Nickname line is still highlighted, type O (OTHER CMDS). It is important that the Nickname line is highlighted when you type the O. If not, you will not see the correct list of other commands.
- Provided the Nickname line was highlighted, you should now see an option for X (eXtraHdr). Type X, and you will be see the following prompt.
Enter the name of the header field to be added:
Type "X-Spam-Level" here.
After you type this and hit enter, you should return to the "ADD A FILTERING RULE" menu with a new line under the Nickname line as follows:
X-Spam-Level pa = <No Value Set>
- You have added the correct header, now you need to tell pine what search string to search on in this header. Mail is scanned and scored by the anti-Spam software, the higher the score the more likely it is to be spam. A spam score of 5 or higher is a safe starting point when filtering spam. The anti-Spam software will be one asterisk in the X-Spam-Level header for each spam point. Therefore, to filter out mail with a spam score of 5 or higher, the pattern that needs to be matched is five asterisks. With the X-Spam_Level line highlighted, press enter. You will be prompted to enter the pattern:
Enter the text to be added :
At this point, type "*****". This can be modified at a later time if you wish to dial up or dial down the spam filtering.
Tell the filter what to do with messages that are filtered.
- Using the arrow keys, travers down to the line "Filter Action". It is recommended that spam be Moved to it's own folder. To do this, make sure the Move item under "Filter Action" has an asterisk next to it. If it does not, highlight the "Move" entry and press enter.
- After the Move item has been selected, arrown down one item to the
"Folder List" item and press enter. You will be prompted as follows:
Enter the text to be added :
Enter the name of the folder you wish to move spam to here.
Save and commit your changes.
Press E (Exit Setup). You will be prompted as follows:
Commit changes ("Yes" replaces settings, "No" abandons changes)?
Press "Y" to commit your changes.
If the mail folder you created in Step 4 does not exist, you will be prompted as follows:
Folder "Spam" in <Mail on imap...al.gov/notls> doesn't exist. Create?
Type "Y" to create this folder.
From the "SETUP FILTERING RULES" menu, press E (Exit Setup). You will be prompted as follows:
Commit changes ("Yes" replaces settings, "No" abandons changes)?
Type "Y" to commit the changes.
Verify
The process is complete. Make sure you didn't make any obvious
errors. Go to your INBOX and verify that you still have messages there.
The X-SPAM-Flag is in the header so have Outlook watch for specific words in the header. Click on the highlighted text specific words.
Lets move the mail to a specific folder. In this example I've already created one that is named _spam. Select the option and then click on the highlighted text specified
If you want to define any exceptions here is the place to do it. Otherwise click on Next
You can give the rule a name if you want. Be sure to turn on the rule. Click on Finish
Now mail that has been tagged as spam will be moved to the _spam folder when received.