On 14/09/2012 12:32, Marco Zapletal wrote:
...
The messages which I want to expose via IMAP are not delivered using
SMTP, but via some other protocols. So, my question was how to get my
messages processed and stored in the James mailbox. In the meantime I
already got this working by wrapping my message in a MimeMessage
representation, which is then put as byte[] in an ActiveMQObjectMessage
on the SPOOL queue. A pitfall was to set the appropriate headers (e.g.,
"FORCE_DELIVERY") in order to get the message through the message selector.
Ok, so you want to behave as a client of the spooling system, which
sounds reasonable if you have high-load traffic.
If you only have low traffic or only import once process, you could act
as a direct client of the mailbox.
To try to answer you question, you should paste some snippets of your
code. The spool implementation is by default an activemq Broker, so you
would need to have the James server running which kicks off the broker.
Once this is done, you can grab some code form [1]; get the queue and
queue.enQueue
If you don't want to have activemq, you can configure james to rely on a
file based queing system, but you code should be the same.
Hope this helps,
Eric
[1]
https://svn.apache.org/repos/asf/james/server/trunk/queue-jms/src/test/java/org/apache/james/queue/jms/JMSMailQueueTest.java
Best regards,
Marco
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]