Hi Gabe,

Once stored in the mailbox (jpa, maildir,...), the message is given back via pop3 or imap4 thank to the mailbox-store module (see (1) and (2)). We do use mime4j to parse the stream content and build back our own Mailbox Message.

If your are looking on a way to read back the mailbox message, you should simply rely/inject the adhoc (jpa or maildir...) Mailbox/Message Managers and access its methods.

If you are looking how to imap-proxy, the question will be which imap client you will be using. If you are using the classical javax.mail client, you will get back a javax.mail.Message.

Hope this helps,

Eric

(1) https://svn.apache.org/repos/asf/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/ResultUtils.java (2) https://svn.apache.org/repos/asf/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/streaming/PartContentBuilder.java


On 04/12/2012 08:15 PM, Gabe wrote:
Hi Eric,
on a slightly different topic, what's the best way to parse a message
(JPA message) to be able to present it to the end-user (parse it to
can get the subject, and body separately)

thank you,
--gabe


On Wed, Apr 11, 2012 at 8:51 AM, Gabe<[email protected]>  wrote:
Thank you Eric. I'd appreciate if you could give me a hint on where I
should start to look at (im guessing it's gonna be in the vicinity of
those apache-james-imap-*.jar jars but a if you could be a little more
specific would give me a jump start).


Cheers,
--gabe


On Wed, Apr 11, 2012 at 2:16 AM, Eric Charles<[email protected]>  wrote:
Hi,

It's not available, but well possible to implement.
Don't hesitate to discuss here if you would like to further identify how to
implement this.

Thx, Eric


On 04/06/2012 01:42 AM, Gabe wrote:

Hi there
Is there a way to have the james server act as a IMAP gateway, like a
pass-through facade potentially modify messages (or message headers)
sourced from an underlying IMAP mail server behind?


Cheers,
--gabe

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


--
eric | http://about.echarles.net | @echarles

---------------------------------------------------------------------
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]


--
eric | http://about.echarles.net | @echarles

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to