james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe MOURETTE (AKIO)" <cmo.a...@gmail.com>
Subject Re: mime4j don't read first line of a mail !!
Date Mon, 29 Jun 2009 09:57:04 GMT
On Mon, Jun 29, 2009 at 11:52 AM, Stefano Bagnara <apache@bago.org> wrote:

>
>
>
> What mime4j version are you using?

 maven artefact 0;6

>
> How do you load the message stream?

with this code :
IContentHandler handler = DefaultContentHandler.getInstance();
            MimeStreamParser parser = new MimeStreamParser();
            parser.setContentHandler(handler);
            if (handler.containsCRLF(inputStream)){
                parser.parse(inputStream);
            }else{
                parser.parse(new EOLConvertingInputStream(new
BufferedInputStream(inputStream)));
            }


>
>
> Stefano
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message