You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Scherer Pierre <sc...@ibelgique.com> on 2003/03/07 11:59:09 UTC
ID and Spam processor
Hi again,
Can anyone say me why there is no constant SPAM in the definition of the
states for the class Mail?
In fact, I would like compare the state of mails in the spoolmanager with
the contants Mail.ERROR(no problem) & Mail.SPAM(don't exist) for performing
different logs(INFO,WARN,ERROR).
This comparaison dosen't run : if(mail.getState() == "spam")
getLogger().warn(msg.toString());
---
For the problem of ID, if I corretly understand, there is a modification of
ID when you call the method : MimeMessage.saveChanges()
In my matcher/maillet config file, I call only one time this method, in the
mailet "AddHeader". But the ID after that is the same and this ID changes
only when I call the mailet "ToProcessor" that doesn't call this method!!!
---
Have a nice day:-)
-Pierre
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org
RE: ID and Spam processor
Posted by Danny Angus <da...@apache.org>.
> Can anyone say me why there is no constant SPAM in the definition of the
> states for the class Mail?
the states are the names of the processors, they can be created by configuration, some names are given as constants for convenience.
d.
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org