This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

AnnouncementAnnouncement Module

Collapse

No announcement yet.

Issue accessing Apache James Server using inbound-channel-adapterPage Title Module

Well it is definitely a bug. The only question is it SI bug or James?
The log messages that you posted are very helpful especially this one which basically tells us what is the problem.

Code:

[DEBUG 2012-02-15 17:42:51,981] This email server does not support RECENT flag, but it does support USER flags which will be used to prevent duplicates during email fetch.
A10 SEARCH NOT (ANSWERED) NOT (DELETED) NOT (SEEN) NOT (KEYWORD spring-integration-mail-adapter) ALL
A10 BAD SEARCH failed. Illegal arguments.

So we basically want to get only recent email messages and since James does not support RECENT flag but DOES appear to support USER flags part of the search terms is NOT 'spring-integration-mail-adapter' which is a user flag that would have been set for emails that were retrieved by this adapter, but as you can see James doesn't seem to like it.

I am going to have to test it with James. Any pointers on how to quickly set it up? Also what version of James you are using?

The thing is that the USER flags is a new feature of James and i was able to successfully set the user flag and see in in the incoming message, however as you can see from the JIRA it fails when user flag is used on the SearchTerm

Comment

As you had mentioned, the issue might be with Apache James as i am using version 3-beta in order to support IMAP protocol. Anyway, i will raise the issue to Apache James Discussion Group in a short while to confirm this. i might switch to their stable version and use pop3 instead.

The installation and configuration of James-3.0-beta is fairly straightforward (you should be able to get it up and running in 10 minutes):
1) Unzip the archive
2) Goto the /bin and run the run.sh or run.bat script
3) Use the james-cli.sh to create a domain
4) Use the james-cli.sh to add a user

Beside this issue, do you have any idea how i can configure the inbound-channel-adapter to access Microsoft Exchange via OWA (Outlook Web Access)?

Thanks in advance.

Regards,
Alvin

Comment

I am amazed by your prompt action to help to resolve this issue. Thank you very much.

I have switched to POP3 using the same version 3 beta and it seems to be working fine for now. However, i notice that mail-filter-expression do not seem work for POP3. Moreover, i also need your help to connect to Microsoft Exchange Server via OWA as POP3 and IMAP is not allowed in my company. Any advice is appreciated. Thanks again.