Return-Path: Delivered-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Received: (qmail 78475 invoked from network); 15 Nov 2009 08:01:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Nov 2009 08:01:03 -0000 Received: (qmail 17138 invoked by uid 500); 15 Nov 2009 08:01:03 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 17105 invoked by uid 500); 15 Nov 2009 08:01:03 -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 17095 invoked by uid 99); 15 Nov 2009 08:01:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Nov 2009 08:01:03 +0000 X-ASF-Spam-Status: No, hits=-10.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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; Sun, 15 Nov 2009 08:01:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0B258234C045 for ; Sun, 15 Nov 2009 00:00:40 -0800 (PST) Message-ID: <1264779393.1258272040037.JavaMail.jira@brutus> Date: Sun, 15 Nov 2009 08:00:40 +0000 (UTC) From: "mike bell (JIRA)" To: mime4j-dev@james.apache.org Subject: [jira] Commented: (MIME4J-140) MIME4J-57 is not practical in its limits and incorrect in its RFC interpretation In-Reply-To: <1299322642.1258271919624.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MIME4J-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12778064#action_12778064 ] mike bell commented on MIME4J-140: ---------------------------------- Sorry I'm wrong about #2. No bug. Brain fart. > MIME4J-57 is not practical in its limits and incorrect in its RFC interpretation > -------------------------------------------------------------------------------- > > Key: MIME4J-140 > URL: https://issues.apache.org/jira/browse/MIME4J-140 > Project: JAMES Mime4j > Issue Type: Bug > Affects Versions: 0.6 > Reporter: mike bell > > I have begun playing with Mime4j for potential use in a software project. Very quickly I found a simple email (Which i can attach) which has about 30 TO addresses. The default was to throw an exception > Looking at MIME4J-57 the author has misunderstood the SMTP RFC 2821. Yes you are limited to 998 octets PER LINE, but you may FOLD as many 998 octet lines as you wish. Technically it's 100% legal to have a 50 megabyte header value, as long as it is folded. (per 76 or 998 rules). > I think the limit chosen by default of 1000 is absurdly low - this should be 100000 minimum or perhaps even unlimited by default. There is something to be said for a sanity check option, for sure - but not one that is triggered so easily. > I can also open somewhat related JIRAS if people find them of merit: > 1. Documentation - defaults should be clearly stated in MimeEntityConfig javadoc. They are not > 2. Bug - The javadocs for MimeEntityConfig claim mc.setMaxHeaderCount(-1); would defeat; this check. It does not (I worked around with Integer.MaxValue) > 3. Design Question: Should the MimeTokenStream not have a public constructor that allows MimeEntityConfig to be fed. As it was I had to create my own subclass to access the protected constructor - is there a reason for this? > Thanks > Example header that blew stuff up (and I think we've all seen far far worse!) - The To line triggers this > Return-Path: > Received: from c.mx.sonic.net (c.mx.sonic.net [64.142.100.46]) > by eth0.a.lds.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id mBT21U5h027864; > Sun, 28 Dec 2008 18:01:30 -0800 > Received: from bay0-omc2-s13.bay0.hotmail.com (bay0-omc2-s13.bay0.hotmail.com [65.54.246.149]) > by c.mx.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id mBT21QuA026548; > Sun, 28 Dec 2008 18:01:30 -0800 > Received: from BAY117-W11 ([207.46.8.46]) by bay0-omc2-s13.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); > Sun, 28 Dec 2008 18:01:26 -0800 > Message-ID: > Content-Type: multipart/mixed; > boundary="_03df338b-5029-48d8-84e8-34f5e171dcbd_" > X-Originating-IP: [96.228.108.66] > From: Tommy Clark > To: , > Alexandra Droman > , > Alexis Steinkamp , , > , Ben Greenberg > , > blythe gross , , > , Dae-Jin Kim > , > Doug Arthur , > Dox Doxiadis > , , > Haidde Sprague > , > James Lee , Jeff Dorman > , > , "Jeff Lim (E-mail)" > , > Jeff Moshman , Karen Wolfe > , > , keirabby > , > , Kerry Levenberg > , > Kim-Chi Steger , , > , mike bell , , > Natalie Stange , > karen wolfe > , , > Rob Cliver > , Sharon Lee , > the Clarks > , Ward Breeze , > > Subject: N More THANKS > Date: Sun, 28 Dec 2008 18:01:25 -0800 > Importance: Normal > In-Reply-To: > References: > > MIME-Version: 1.0 > X-OriginalArrivalTime: 29 Dec 2008 02:01:26.0088 (UTC) FILETIME=[5B42CC80:01C96959] > X-Sonic-SB-IP-RBLs: IP RBLs sorbs-spam. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.