Return-Path: Delivered-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Received: (qmail 70716 invoked from network); 28 Dec 2009 23:51:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Dec 2009 23:51:51 -0000 Received: (qmail 99157 invoked by uid 500); 28 Dec 2009 23:51:51 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 99123 invoked by uid 500); 28 Dec 2009 23:51: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 99113 invoked by uid 99); 28 Dec 2009 23:51:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Dec 2009 23:51:51 +0000 X-ASF-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of apache@bago.org designates 74.125.78.150 as permitted sender) Received: from [74.125.78.150] (HELO ey-out-1920.google.com) (74.125.78.150) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Dec 2009 23:51:42 +0000 Received: by ey-out-1920.google.com with SMTP id 3so2154722eyh.44 for ; Mon, 28 Dec 2009 15:51:18 -0800 (PST) Received: by 10.213.0.213 with SMTP id 21mr5359089ebc.57.1262044278639; Mon, 28 Dec 2009 15:51:18 -0800 (PST) Received: from mail-ew0-f212.google.com (mail-ew0-f212.google.com [209.85.219.212]) by mx.google.com with ESMTPS id 16sm8492260ewy.10.2009.12.28.15.51.18 (version=SSLv3 cipher=RC4-MD5); Mon, 28 Dec 2009 15:51:18 -0800 (PST) Received: by ewy4 with SMTP id 4so11542290ewy.12 for ; Mon, 28 Dec 2009 15:51:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.91.84 with SMTP id g62mr2800152wef.216.1262044277720; Mon, 28 Dec 2009 15:51:17 -0800 (PST) X-Originating-IP: [78.134.13.238] In-Reply-To: References: <330063705.1261941090173.JavaMail.jira@brutus.apache.org> <69500553.1261943129408.JavaMail.jira@brutus.apache.org> Date: Tue, 29 Dec 2009 00:51:17 +0100 Message-ID: <9426afb70912281551o499c8cf4i51a4918eb6c4a960@mail.gmail.com> Subject: Re: [jira] Resolved: (MIME4J-146) [possible backward incompatibility] Make sure "body" is always unfolded, "raw" is always folded, both in RawField and ParsedFields. From: Stefano Bagnara To: mime4j-dev Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2009/12/29 Robert Burrell Donkin : > On Sun, Dec 27, 2009 at 7:45 PM, Stefano Bagnara (JIRA) > wrote: >> >> =A0 =A0 [ https://issues.apache.org/jira/browse/MIME4J-146?page=3Dcom.at= lassian.jira.plugin.system.issuetabpanels:all-tabpanel ] >> >> Stefano Bagnara resolved MIME4J-146. >> ------------------------------------ >> >> =A0 =A0Resolution: Fixed >> >> IMO this works as expected now. >> All tests still pass. >> If you have external code depending on the previous behaviour please pro= vide a testcase so that we can discuss the need of body to be unfolded in t= he parser and not by RawField. > > i'm worried that this kind of change will break IMAP and/or jsieve in > a way that's really hard to fix. this will really suck for james since > we'll have to fork a known good version of mime4j. if someone could > run the IMAP and JSieve build after any incompatible semantic change > then at least there'd be a chance that the regression would be > understood. Well, there was already changes wrt folding with MIME4J-141 so the compatibility issue was already open. Did you check imap/jsieve after MIME4J-141 was changed? All of mime4j testcases passed before MIME4J-141, after MIME4J-141 and after MIME4J-146. IMHO if external code is "break in a way that's really hard to fix" then we should have testcases for them. If you already have any pointer about your worries this will help adding tests. As far as I can tell neither IMAP or Jsieve do care about RawField.getBody and I'd say that if they even call getBody they expect the unfolded data (that is how it is handled now). Stefano