procmail
[Top] [All Lists]

Re: Trouble with deleting a message with /dev/null ( was : Emails not retrieved automatically)

2007-10-19 02:16:52

Francesco Abeni schreef:

(...)

/usr/local/procmail/antispam.prc :
-----------------------------------
    DROPPRIVS = yes
    :0fw
    * !^X-Givi: yes
    | /usr/bin/spamc -s 256000
-----------------------------------

OK, but you don't seem to be doing anything with the spam score header.

Spamassassin adds a "[SPAM]" to the subject of the message, so that i can
use a rule on my mail client to put it in a specific folder.

/usr/local/procmail/block.prc :
------------------------------------
    :0
    * ^From:(_dot_)*f\(_dot_)abeni(_at_)mydomain\(_dot_)it
    * !^TO_(_dot_)*(_at_)mydomain\(_dot_)it
    * !^TO_(_dot_)*(_at_)myotherdomain\(_dot_)com
    * !^TO_(_dot_)*(_at_)myanotherdomain \.it
    /tmp

# EOF
------------------------------------

There is a strange space in the 4th condition line. The ^TO lines could
be combined.

Sorry, the space is a typo i did while i was changing my real domain names
for privacy reason. About combining the ^TO lines i'm sure there are better
ways but i'm still a beginner.

Now i will stop debugging and just optimize my recipe. How would you rewrite
the "block.prc" recipe? As you may already have understood, my aim is to
block mail that
- are from a specific internal sender
AND
- are not to internal domain

After that, i will do some other testing.

Thank you very much for your time.

--
Francesco Abeni
f(_dot_)abeni(_at_)givi(_dot_)it


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>