Return-Path: Delivered-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Received: (qmail 92369 invoked from network); 29 Oct 2010 09:22:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Oct 2010 09:22:46 -0000 Received: (qmail 63952 invoked by uid 500); 29 Oct 2010 09:22:46 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 63903 invoked by uid 500); 29 Oct 2010 09:22:44 -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 63895 invoked by uid 99); 29 Oct 2010 09:22:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Oct 2010 09:22:43 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Oct 2010 09:22:41 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9T9MJJ5022720 for ; Fri, 29 Oct 2010 09:22:19 GMT Message-ID: <4364401.138891288344139858.JavaMail.jira@thor> Date: Fri, 29 Oct 2010 05:22:19 -0400 (EDT) From: "Oleg Kalnichevski (JIRA)" To: mime4j-dev@james.apache.org Subject: [jira] Commented: (MIME4J-180) exception expected when mime part has no end boundary and parsing is strict In-Reply-To: <16686991.127391288300640309.JavaMail.jira@thor> 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-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12926220#action_12926220 ] Oleg Kalnichevski commented on MIME4J-180: ------------------------------------------ Rohan Could you please attach a sample file and let me know at what point you would like an exception to be thrown? Oleg > exception expected when mime part has no end boundary and parsing is strict > --------------------------------------------------------------------------- > > Key: MIME4J-180 > URL: https://issues.apache.org/jira/browse/MIME4J-180 > Project: JAMES Mime4j > Issue Type: Improvement > Affects Versions: 0.6 > Reporter: Rohan Hart > Priority: Minor > > It would simplify my code if, when parsing strictly, the body text stream provided by a mime part would throw an exception, eg., EOFException, when the part has no end boundary. This seems semantically more correct. > The current behaviour means that I can't just pass the stream but have to wrap it in a proxy which knows about the real stream, the original mime parser and the sequence of events which lead to a check for the end of boundary. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.