james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: NIO Iterator over messages in mbox file
Date Thu, 09 Feb 2012 13:43:35 GMT
On Thu, 2012-02-09 at 12:23 +0200, Ioan Eugen Stan wrote:
> Hello,
> This is the second try to get the message on the mailing list.
> I've started working on a small project called mbox-iterator that I wish
> to integrate with mime4j later, when it's more usable. It's purpose is
> to provide a iterator like interface over mbox files. Details about the
> project are here [1].
> I'm bringing it on because I think this would be a nice addition to
> mime4j and I need some help.
> One thing that I can't figure out is: does mime4j do charset decoding? I
> haven't looked over the code but I know it expects a stream of bytes.

The MIME parser takes raw data stream as input but can provide fully
decoded Reader for individual body parts.

Hope this helps


> mbox-iterator does regexp matching to find From_ lines and that requires
> a CharSequence. This means I have use/return CharBuffer's from the
> iterator. The CharBuffers need to be re-encoded and streamed as bytes
> (maybe with ByteArrayInputStream).
> In the future I plan to use git-svn to experiment new stuff but I would
> like to get it fast into mime4j. What do you think?
> [1]
> http://ieugen.blogspot.com/2012/02/nio-iterator-over-messages-in-mbox-file.html
> Cheers,

View raw message