Return-Path: Delivered-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Received: (qmail 41475 invoked from network); 24 Dec 2009 14:55:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Dec 2009 14:55:40 -0000 Received: (qmail 38127 invoked by uid 500); 24 Dec 2009 14:55:40 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 38090 invoked by uid 500); 24 Dec 2009 14:55:40 -0000 Mailing-List: contact mime4j-dev-help@james.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mime4j-dev@james.apache.org Delivered-To: mailing list mime4j-dev@james.apache.org Received: (qmail 38080 invoked by uid 99); 24 Dec 2009 14:55:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Dec 2009 14:55:40 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [87.248.110.137] (HELO n20.bullet.mail.ukl.yahoo.com) (87.248.110.137) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 24 Dec 2009 14:55:29 +0000 Received: from [217.146.182.177] by n20.bullet.mail.ukl.yahoo.com with NNFMP; 24 Dec 2009 14:55:08 -0000 Received: from [87.248.111.190] by t3.bullet.ukl.yahoo.com with NNFMP; 24 Dec 2009 14:55:08 -0000 Received: from [127.0.0.1] by omp209.mail.ukl.yahoo.com with NNFMP; 24 Dec 2009 14:55:08 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 129115.50198.bm@omp209.mail.ukl.yahoo.com Received: (qmail 74954 invoked by uid 60001); 24 Dec 2009 14:55:07 -0000 Message-ID: <751662.74604.qm@web23007.mail.ird.yahoo.com> X-YMail-OSG: GurT7V0VM1lrWe875aLKI.caN6mByrOOpZx9Qt7C08epUr0kz632Mu.8_byuhpfold6uoJVcIEYYgNs7cyQPkOd.GnILXcb0CSxBLAu_K1GnGP1UIXvwjBEw6IWWZSHwTDyGDiofyqGJheD4dT6aXUEeRYr.sAL0hOubHHzVBH8tVRuC2q_wGciT9acagKemcLgsfnEzcccb884r7yElV09g4tWINtH2SZECuALsxdbnB0XbT7yDdheMdaE5BkGjoBysbphIrcS4Muoajp3IPkz.coYqTt0y42lJdgRUMpS6jpBImAfqUpPaWsG9Et.PXWJWlnCXnRTZvN4xNro- Received: from [212.190.144.11] by web23007.mail.ird.yahoo.com via HTTP; Thu, 24 Dec 2009 14:55:07 GMT X-RocketYMMF: darkman_spam X-Mailer: YahooMailClassic/9.0.20 YahooMailWebService/0.8.100.260964 Date: Thu, 24 Dec 2009 14:55:07 +0000 (GMT) From: Florent Georges Reply-To: lists@fgeorges.org Subject: Parsing header bug? To: mime4j-dev@james.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi,=0A=0A I am using a MimeTokenStream to parse a multipart message. I= =0Ause parseHeadless() as my system already parses the headers of=0Athe mul= tipart before giving me the input stream of its content.=0ABut for some rea= son, the Content-Type header seems to be wrongly=0Aparsed. The following c= ode:=0A=0A LOG.debug(" field: '" + f.getBody() + "'");=0A LOG.debug(= " field: '" + f.getRaw().toString() + "'");=0A=0Aproduces the following li= nes:=0A=0A field: ' text/html'=0A field: 'Content-type: text/html'=0A= =0A See the extra space in the first line? I guess it should not=0Abe the= re...=0A=0A Any idea?=0A=0A Regards,=0A=0A-- =0AFlorent Georges=0Ahttp://= www.fgeorges.org/=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A= =0A=0A=0A