Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 22598 invoked from network); 25 Aug 2008 11:20:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Aug 2008 11:20:36 -0000 Received: (qmail 55969 invoked by uid 500); 25 Aug 2008 11:20:33 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 55912 invoked by uid 500); 25 Aug 2008 11:20:33 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 55901 invoked by uid 99); 25 Aug 2008 11:20:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2008 04:20:33 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2008 11:19:44 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 50DB6234C1AC for ; Mon, 25 Aug 2008 04:19:44 -0700 (PDT) Message-ID: <290346684.1219663184316.JavaMail.jira@brutus> Date: Mon, 25 Aug 2008 04:19:44 -0700 (PDT) From: "Rick McGuire (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Assigned: (GERONIMO-4260) Multipart message from POP3 has spurious attachment In-Reply-To: <250268574.1219404764321.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-4260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick McGuire reassigned GERONIMO-4260: -------------------------------------- Assignee: Rick McGuire > Multipart message from POP3 has spurious attachment > --------------------------------------------------- > > Key: GERONIMO-4260 > URL: https://issues.apache.org/jira/browse/GERONIMO-4260 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: mail > Environment: geronimo-javamail_1.4_mail-1.4.jar > IBM JRE 6 SR 1 > Windows XP > Reporter: Dave Rushall > Assignee: Rick McGuire > Priority: Minor > > A multi-part message retrieved from a POP3 store is reported as having an extra attachment. For the message quoted below, Multipart.getCount() reports 3 when the correct answer is 2. Calling getBodyPart(0) and getBodyPart(1) returns the two valid parts as expected. Calling getBodyPart(2) returns a spurious "text/plain" attachment, which appears to consist of some blank lines and has no headers. Perhaps the MIME decoder is incorrectly interpreting the blank lines following the end boundary as an additional part? > RETR 1 > +OK 1076 octets > Received: *********************************************************** > by ***************************************************************************** > for ***********************************; Fri, 22 Aug 2008 12:17:00 +0100 > Date: Fri, 22 Aug 2008 12:17:00 +0100 > Message-Id: <200808221117.m7MBGxhc1310736@*************************> > MIME-Version: 1.0 > Content-Type: multipart/mixed; boundary="0_070831_1751148640_104597052_1219403816453"; charset="ISO-8859-1" > Subject: Test message > To: ********************************* > From: *********************** > Status: O > --0_070831_1751148640_104597052_1219403816453 > Content-Type: text/html; > charset="UTF-8" > Content-Transfer-Encoding: base64 > PGh0bWw+PGJvZHk+PHA+SGVsbG8gdGhlcmUhIEhvdyBhcmUgeW91IHRvZGF5PzwvcD48L2Jv > ZHk+PC9odG1sPg== > --0_070831_1751148640_104597052_1219403816453 > Content-Location: attachment1.txt > Content-Disposition: attachment; > filename="attachment1.txt" > Content-Type: text/plain > Content-Transfer-Encoding: base64 > QXR0YWNobWVudCAx > --0_070831_1751148640_104597052_1219403816453-- > . > (Note there are actually three blank lines between the end boundary and the '.' marker, but the extra white space is not showing up in the formatted description of this bug) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.