james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florent Georges <li...@fgeorges.org>
Subject Parsing header bug?
Date Thu, 24 Dec 2009 14:55:07 GMT
  Hi,

  I am using a MimeTokenStream to parse a multipart message.  I
use parseHeadless() as my system already parses the headers of
the multipart before giving me the input stream of its content.
But for some reason, the Content-Type header seems to be wrongly
parsed.  The following code:

    LOG.debug("  field: '" + f.getBody() + "'");
    LOG.debug("  field: '" + f.getRaw().toString() + "'");

produces the following lines:

    field: ' text/html'
    field: 'Content-type: text/html'

  See the extra space in the first line?  I guess it should not
be there...

  Any idea?

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/





















      


Mime
View raw message