Return-Path: Delivered-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Received: (qmail 5784 invoked from network); 27 Mar 2010 15:22:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Mar 2010 15:22:51 -0000 Received: (qmail 72293 invoked by uid 500); 27 Mar 2010 15:22:51 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 72274 invoked by uid 500); 27 Mar 2010 15:22:51 -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 72266 invoked by uid 99); 27 Mar 2010 15:22:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Mar 2010 15:22:51 +0000 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; Sat, 27 Mar 2010 15:22:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A5589234C4F3 for ; Sat, 27 Mar 2010 15:22:27 +0000 (UTC) Message-ID: <2141854067.528181269703347676.JavaMail.jira@brutus.apache.org> Date: Sat, 27 Mar 2010 15:22:27 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: mime4j-dev@james.apache.org Subject: [jira] Commented: (MIME4J-177) The parser invoke preamble token/event even when no preamble exists in the message In-Reply-To: <1876800590.527811269700947589.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MIME4J-177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12850530#action_12850530 ] Oleg Kalnichevski commented on MIME4J-177: ------------------------------------------ Stefano, I can take this one over, so you could focus on fixing dom/message stuff. Oleg > The parser invoke preamble token/event even when no preamble exists in the message > ---------------------------------------------------------------------------------- > > Key: MIME4J-177 > URL: https://issues.apache.org/jira/browse/MIME4J-177 > Project: JAMES Mime4j > Issue Type: Bug > Components: parser (core) > Affects Versions: 0.6 > Reporter: Stefano Bagnara > Assignee: Stefano Bagnara > Fix For: 0.7 > > > The token stream sends T_PREAMBLE tokens even when there is no preamble in the message making impossible to distinguish between messages with no preamble and messages with an empty preamble. > T_PREAMBLE should be called only when a preamble exists: > The rfc define multipart-body as: > multipart-body := [preamble CRLF] > dash-boundary transport-padding CRLF > body-part *encapsulation > close-delimiter transport-padding > [CRLF epilogue] > So preamble is optional (if the is a CRLF before the first boundary then you have a preamble). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.