What "flavour" of Apache James are you relying on?

What is your deployment topology?

Regards,

Benoit

On 19/05/2022 21:53, Sean McElroy wrote:
Hello All,

I can't get the Java Mail API search functionality to work with Apache James. 
For example the code below does not return any message, but I know that there 
are unseen messages.


             Flags seen = new Flags(Flags.Flag.SEEN);
             FlagTerm unseenFlagTerm = new FlagTerm(seen, false);
             Message messages[] = emailFolder.search(unseenFlagTerm);

I have tried other types of search but always get zero messages returned. I am 
using Spring Boot 2.5.4 which includes Jakarta Mail 1.6.7.
Do I need to do something different for the searches to work on Apache James?

Best Regards,
Sean
Confidential Communication: The contents of this e-mail including any 
attachment are confidential and intended solely for the person(s) to whom they 
are addressed. Any reader of this email who is not the intended recipient is 
notified that any dissemination, distribution or copying of this communication 
is strictly prohibited. If you have received this e-mail in error, please 
notify the sender immediately and delete all copies from your computer system. 
Subsequent alterations to this email after its transmission will be disregarded.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org

Reply via email to