[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-anubis] processing SMTP commands
From: |
Federico Guerrini |
Subject: |
[bug-anubis] processing SMTP commands |
Date: |
Wed, 19 May 2004 12:03:50 +0200 |
User-agent: |
KMail/1.5.4 |
Hello all,
I'm running Anubis 3.9.93 on Slackware Linux 9.1.
I cannot get it to process SMTP commands with rules such as:
if command["mail from"] some regex
...do something...
fi
This is my .anubisrc rule section
---BEGIN RULE---
add header[X-ProcessedBy] "Anubis"
if header[Subject] :perlre ".*<address@hidden>?"
add header[X-Comment] "Header rule OK"
fi
if command["mail from"] :perlre ".*<address@hidden>?"
add header[X-Comment] "Mail from rule OK"
fi
---END---
First, I add an X-ProcessedBy header to every message, to be sure that Anubis
processed them.
Then I add an X-Comment header to every message with subject
"address@hidden". I know this makes little sense. I just wanted to be
sure that the next rule did not fail due to a non-matching regex.
The third rule should add another X-Comment header if the MUA issues a "mail
from: address@hidden" when sending the message; at least, this is what
should happen, in my understanding.
In fact, if I manually send a message to anubis (by doing a telnet
myanubishost 24), issue a "mail from: address@hidden" command and then
compose a message with subject "address@hidden", only the first two
rules are applied. This means that the regex matches the address, but the
third rule is not applied.....
Any idea why?
Thank you very much.
federico
- [bug-anubis] processing SMTP commands,
Federico Guerrini <=