4 Jul 2008 22:58
Help with recipe
Skip <skip <at> pelorus.org>
2008-07-04 20:58:02 GMT
2008-07-04 20:58:02 GMT
I'm trying to write a recipe that has several blocks which check for
certain spam conditions, added by spamassassin and dspam. When those
conditions are met, it should
1. Add a header to the email which tells me what rule filed the email
so I won't have to go through the logs
2. Deliver the message
3. Mark it read
4. Learn it with sa-learn as spam
I think I have tried every combination placement and header options, but
I haven't nailed the right combination just yet. Perhaps one of you
smart readers can help me?
Here's where I am now. This actually does everything it's supposed to,
but I get extra emails from all the extra clonings (sometimes a message
may meet the conditions of more than one block).
:0c
* ^X-Spam-Status:.*autolearn=no
* ^X-Spam-Status:.*BAYES_99
* ^X-DSPAM-Result: Spam
{
foldername=Spam-Archive
#add the header
:0fhw:formail.lock
|/usr/bin/formail -A "X-Procmail-Rule: spamassassin autolearn=no,
BAYES_99 and dspam-result=spam"
#delivers to foldername/new
(Continue reading)
RSS Feed