Return-Path: X-Original-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Delivered-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2B51F9675 for ; Thu, 31 May 2012 11:41:37 +0000 (UTC) Received: (qmail 69479 invoked by uid 500); 31 May 2012 11:41:37 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 69414 invoked by uid 500); 31 May 2012 11:41:36 -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 69398 invoked by uid 99); 31 May 2012 11:41:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2012 11:41:36 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of markus.wiederkehr@gmail.com designates 209.85.160.173 as permitted sender) Received: from [209.85.160.173] (HELO mail-gh0-f173.google.com) (209.85.160.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2012 11:41:31 +0000 Received: by ghrr14 with SMTP id r14so922435ghr.4 for ; Thu, 31 May 2012 04:41:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=inOs942luDzCFt1SWvhvjhFo8oaOWAmJVO3UF1y9T7Y=; b=Fe2yEtQ5Jplc5vBQdkqicgWexuTt+Lm4amei+w+4BId7Lkb0aNZTlTAdw82T2wAh9/ 0NCjzf5qakE4tUj7NfI2d3BMcpoZzfHMNuBTmltfbYFXynCAiV4TkrpW6rv03PiZjoxX b7zKXsQCjY+EMEOjoN+spO+xAu10FFmF8AEiOvBHxrzfsg+Oy2ryPVOqcmbJc1GhFPez J/MlhlSA9kENZ1+Nk+/ai8WhQNWBooKRgDO1dWPHuOyQTkChFpO1T02V/91cJfmva+9q EF3dIt5dz9ftkP/RoC5aoPpbJwvOEKK0YWKqndi2wF7Lp9bW0rOipRC/jZwv2CIi4N8v DJ/Q== MIME-Version: 1.0 Received: by 10.236.114.201 with SMTP id c49mr1974398yhh.110.1338464470579; Thu, 31 May 2012 04:41:10 -0700 (PDT) Received: by 10.101.211.33 with HTTP; Thu, 31 May 2012 04:41:10 -0700 (PDT) In-Reply-To: <4FC6A118.2060705@kmmd.de> References: <4FC54FA1.609@kmmd.de> <4FC68C1D.3000901@kmmd.de> <4FC6A118.2060705@kmmd.de> Date: Thu, 31 May 2012 13:41:10 +0200 Message-ID: Subject: Re: Automatic Decoding of field contents From: Markus Wiederkehr To: mime4j-dev@james.apache.org Content-Type: multipart/alternative; boundary=20cf303ddc4a50390704c1538b48 X-Virus-Checked: Checked by ClamAV on apache.org --20cf303ddc4a50390704c1538b48 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sorry to disappoint you but "Fix Version" means it is scheduled to be fixed in 0.8, it is not fixed yet. If nobody contributes a patch it will simply be postponed to 0.9 once 0.8 is ready. A patch would be welcome but we cannot accept a derivative work from JavaMail or other sources if the license is not compatible. Markus On Thu, May 31, 2012 at 12:37 AM, G=C3=BCnther Schmidt wrote: > Hi Markus, > > thank you very much, you seem to have nailed. And it even better, if I > read this correctly it's "fixed" in 0.8. So I can even give it a spin. > > G=C3=BCnther > > Am 31.05.12 00:28, schrieb Markus Wiederkehr: > >> This is a MIME extension that is not implemented in Mime4J, see >> https://issues.apache.org/**jira/browse/MIME4J-109 >> >> Markus >> >> On Wed, May 30, 2012 at 11:07 PM, G=C3=BCnther Schmidt >> **wrote: >> >> Hi everyone, >>> >>> sorry for the confusion, the mimeparser set to do decoding *does* also >>> decode content fields. It just has trouble recognizing some more exotic >>> ones correctly, like this one: >>> >>> Content-Type: application/zip; name*0*=3Diso-8859-15''Redcom%** >>> >>> 20Erl%F6santeilsplit; >>> name*1*=3Dter.zip >>> >>> Anybody here know a neat trick to get around this hick up? >>> >>> G=C3=BCnther >>> >>> Am 30.05.12 00:37, schrieb G=C3=BCnther Schmidt: >>> >>> Hi everyone, >>>> >>>> I've figured out how to get the parser to automatically decode input >>>> streams, ie make mime4j return Base64InputStream or >>>> QuotedPrintableInputStream, by setting MimeStreamParser.** >>>> >>>> setContentDecoding(true). >>>> >>>> However this does not seem to affect the contents of any of the header= s >>>> fields. Their bodies are still quotedprintable encoded, even when >>>> parsed, >>>> ie turned into a ParsedField, which causes some errors in my code. >>>> >>>> I haven't found the switch for automatically decoding the field conten= ts >>>> as well. What do I have to do? >>>> >>>> G=C3=BCnther >>>> >>>> >>> > > -- > KMMD IT-Consulting UG (haftungsbeschr=C3=A4nkt) > Offenburger Str. 45 > 68239 Mannheim > Tel: +49-621-4393887 > HRB 712101 Amtsgericht Mannheim > > --20cf303ddc4a50390704c1538b48--