atom feed16 messages in org.apache.james.server-devHow to access CommandStateManager in ...
FromSent OnAttachments
Boris BurtinJul 1, 2009 2:49 pm 
Boris BurtinJul 1, 2009 4:59 pm 
Robert Burrell DonkinJul 2, 2009 7:24 am 
Robert Burrell DonkinJul 2, 2009 7:42 am 
Boris BurtinJul 2, 2009 9:50 am 
Boris BurtinJul 2, 2009 10:17 am 
Robert Burrell DonkinJul 5, 2009 11:51 pm 
Robert Burrell DonkinJul 5, 2009 11:54 pm 
Boris BurtinJul 6, 2009 11:29 am 
Robert Burrell DonkinJul 6, 2009 11:39 pm 
Boris BurtinJul 17, 2009 12:11 pm 
Robert Burrell DonkinJul 23, 2009 2:32 am 
Boris BurtinJul 23, 2009 12:19 pm 
Robert Burrell DonkinJul 23, 2009 12:24 pm 
Boris BurtinJul 27, 2009 1:14 pm 
Robert Burrell DonkinJul 30, 2009 7:40 am 
Subject:How to access CommandStateManager in jSieve 0.3?
From:Boris Burtin (bbur@zimbra.com)
Date:Jul 1, 2009 4:59:57 pm
List:org.apache.james.server-dev

I'm upgrading from jSieve 0.2 to 0.3 and hit a compile problem with
CommandStateManager. My implementation of MailAdapter needs to know whether the
keep is implicit or explicit. I used to do this with 0.2:

public void executeActions() throws SieveException { ... // Handle explicit and implicit delivery actions for (Action action : deliveryActions) { if (action instanceof ActionKeep) { CommandStateManager state = CommandStateManager.getInstance(); if (state.isImplicitKeep()) { // implicit keep: this means that none of the user's rules have been matched // we need to check system spam filter to see if the mail is spam doDefaultFiling(); } else { explicitKeep(); }

CommandStateManager.getInstance() was removed in 0.3. I can't figure out how to
get an instance of CommandStateManager or SieveContext from my MailAdapter code.
Can someone point me in the right direction?