* Jim Roland <[EMAIL PROTECTED]> writes:

> How are you filtering these to go to procmail.  I'd love to do that!

Well without actually seeing the original I can't say for sure which
procmail recipe caught it.  But at a guess I'd say it was one of these
two...

,----[ ~/.procmailrc ]
| # # Spammers using AOL sometimes forget to add a Message-id:
|  :0
|  * ^From.*aol\.com
|  * !^Message-id:.*aol\.com
|  /dev/null
| 
| 
| # # "X-Advertisement" indicate, well, an advertisement.
| # # Use this rule to have them deleted automatically.
|  :0
|  * ^X-Advertisement:
|  /dev/null
`----

The first one catches any message from the domain "aol.com" that
*doesn't* contain a Message-Id header with aol.com in it.  Sometimes a
spammer will deliberately remove the Message-Id header to make it more
difficult to trace him.

The other recipe catches any mail that has an X-Advertisement header.
Now, I get enough junk mail in my snail mail letter box at home, I
don't want it coming to my over the internet as well.

I also use procmail to sort my mail into different mail folders (put
everything from linux-newbie in it's own folder, anything to me in a
folder called "private" etc).

Here's something you can do to get started and to test to see if
procmail is working...

Create a file called "~/.procmailrc" and put the following in it...

,----
| :0
| * ^From:.*your_linux_user_name_here
| $HOME/mail/private                    ### $HOME/mail must exist
`----

Now do...

,----
| echo "This was filtered by procmail" | mail -s "A test" your_user_name
`----

If everything went right that mail will be in the folder
~/mail/private

I have this pet hate with mailing lists and that is people who both
reply to the list and send a Cc to the author. (You may have seen me
whining about it before :) ).  Well I was unable to convince the
masses that Cc'ing on a mailing list was a waste of time.  So now I
get procmail to delete those extra messages for me.

Have a read of...
        man procmail
        man procmailex
        man procmailrc
        man procmailsc
        man formail
        <http://www.procmail.org/>




==========================
Want to really learn Linux?
...Install Slackware
==========================

-- 
---Regards, Steve Youngs--------Email:-<[EMAIL PROTECTED]>---
|     If Microsoft is the answer, then all I can say is that     |
|               you are asking the wrong question.               |
------------------------------<Don't be a Newbie--Be a Gnu-bie>---

Reply via email to