logo       

imap4flags and sieve filter: msg#00076

mail.ims.general

Subject: imap4flags and sieve filter

Hey folks, I've got a mailstore running:

Sun Java(tm) System Messaging Server 6.2-6.01 (built Apr 3 2006)
libimta.so 6.2-6.01 (built 11:15:13, Apr 3 2006)
SunOS mailstore1 5.10 Generic_125101-10 i86pc i386 i86pc


and I'm trying to enable an MTA sieve filter that files messages that
are identified as spam into a specific user's folder. That part works
fine, but I'd also like to flag the message as read rather than unread.
This part is giving me trouble.

Here's what the sieve filter looks like:


require ["fileinto","imap4flags"];

if allof(header :contains "X-SpamLabel" ["SPAM", "VIRUS"],
header :contains "X-MailRoute" "InboundMail") {
fileinto :flags "\Seen" "SPAM";
}


This does the appropriate "fileinto" action but doesn't flag the message
as "read". Am I misunderstanding the functions of the imap4flags
extensions? Do I have the syntax correct?


--
Peter Kaldis UNIX Lizard ` ,
Pixar Animation Studios Systems Group <>|()/~~-
' '



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise