user filter overide imta.filter
Hi,
we have external antivirus solution which tags virus e-mails by adding X-Virus header.
We created imta.filter
require "fileinto";
if header :matches "X-Virus" "1"
{
discard;
stop;
}
And it works (virus e-mail are discarded). But, if user create and enable mailfilter rule "Move message to the folder INBOX", mail got delivered to INBOX. Can we somehow avoid this? (imta.filter to override userfilter)
Sun Java(tm) System Messaging Server 6.2-6.01 (built Apr 3 2006)
libimta.so 6.2-6.01 (built 11:20:35, Apr 3 2006)
SunOS mta-fe01 5.10 Generic_118833-03 sun4u sparc SUNW,Sun-Fire-V240
G
[674 byte] By [
gljiva] at [2007-11-26 11:59:40]

# 1
Hi,
Yes. You can use the jettison action instead of the discard action.
As per the 2005Q4 Messaging Server Admin Guide:
"jettison. Similar to discard in that it causes messages to be silently discarded, but unlike discard, which does nothing but cancel the implicit keep, jettison forces a discard to be performed. The behavioral difference is only relevant when multiple Sieve filters are involved. For example, a system level discard can be overridden by a user Sieve filter explicitly specifying keep, whereas a system level jettison will override anything done by a user Sieve."
So for your rule you would have something like:
require ["fileinto","jettison"];
if header :matches "X-Virus" "1"
{
jettison;
stop;
}
Regards,
Shane.