Re: Filtering spam-mail

From: Dirk A. Loedding (judge@america.net)
Date: Mon, 15 Sep 1997 16:40:41 -0400

greb@sn.no (Hallvard Berg) wrote:

>I want to filter all mail that not has my adress in the To: or Cc:
>header to a specific folder.

>How can I do that using Yarn's filter-function?

Here's part of the filter file I use. I wanted to filter everything
from every source I might expect to get e-mail from to an actual folder,
and let the spam (and those occasional e-mails that I didn't think
about) show up in my inbox.

What I've done is filter e-mail with my address on it, as well as mail
from certain "approved" sources get sent to a folder called "mailbox",
and other e-mails get sent to various other folders, with "unidentified"
stuff going to INBOX. I'm on a mailing list from PCWorld, and another
one that shows up as tipworld. So, I had to account for those, too.

Yarn Mailing List
yarn-list
list.yarn
0 1 0

z1
judge@
mailbox
0 1 0

z2
@pcworld
mailbox
0 1 0

z3
@housing1
mailbox
0 1 0

z4
@gt.ed.net
mailbox
0 1 0

z5
@tipworld
mailbox
0 1 0

Does this help? I used the Filter command. As an example, I'll take the
one with my address in it:

+ Mail Rule ---------------------------------------------------------------+
| |
| Rule name: z1 |
| |
| Search in: ( ) From |
| (*) To |
| ( ) Subject |
| ( ) Header |
| ( ) Body |
| ( ) Header and body |
| |
| Search for: judge@ |
| Match case: No |
| |
| Action: (*) Move to folder/newsgroup: mailbox |
| ( ) Delete |
| |
+--------------------------------------------------------------------------+

Mailbox was created with the newgroup command, and I've set the expire
to 3 days.

--
+------------------------------------------------------------------------+
|   Dirk A. Loedding               <*>               judge@america.net   |
+------------------------------------------------------------------------+