From mime4j-dev-return-856-apmail-james-mime4j-dev-archive=james.apache.org@james.apache.org Mon Jan 04 12:44:23 2010 Return-Path: Delivered-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Received: (qmail 87881 invoked from network); 4 Jan 2010 12:44:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Jan 2010 12:44:23 -0000 Received: (qmail 75817 invoked by uid 500); 4 Jan 2010 12:44:22 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 75791 invoked by uid 500); 4 Jan 2010 12:44:22 -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 75781 invoked by uid 99); 4 Jan 2010 12:44:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jan 2010 12:44:22 +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; Mon, 04 Jan 2010 12:44:20 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B134C29A0012 for ; Mon, 4 Jan 2010 04:43:55 -0800 (PST) Message-ID: <879690662.18941262609035721.JavaMail.jira@brutus.apache.org> Date: Mon, 4 Jan 2010 12:43:55 +0000 (UTC) From: "Stefano Bagnara (JIRA)" To: mime4j-dev@james.apache.org Subject: [jira] Commented: (MIME4J-138) DecoderUtil.decodeEncodedWords() fails if encoded-text starts with an equals sign In-Reply-To: <1603220699.1250510054812.JavaMail.jira@brutus> 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-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12796170#action_12796170 ] Stefano Bagnara commented on MIME4J-138: ---------------------------------------- Nevin, there is no "appendReplacement" method call in the committed fix, so I guess you are referring to an older fix. If you have a string that show the problem I can add it to the test suite to prove that the bug does not exist anymore. That said, FYI in Java 5 you can use Pattern.quote() to get an escaped version of the string (but there is no more need for escaping in the new code, so this is just for your interest). > DecoderUtil.decodeEncodedWords() fails if encoded-text starts with an equals sign > --------------------------------------------------------------------------------- > > Key: MIME4J-138 > URL: https://issues.apache.org/jira/browse/MIME4J-138 > Project: JAMES Mime4j > Issue Type: Bug > Affects Versions: 0.6 > Reporter: Markus Wiederkehr > Assignee: Markus Wiederkehr > Fix For: 0.7 > > Attachments: DecoderUtil.diff, DecoderUtil.java, mime4j-138.patch, RegexDecoderUtil.java > > > For example "=?utf-8?Q?=20test?=" should be decoded as " test". Instead it does not get decoded at all. > The problem is that DecoderUtil.decodeEncodedWords() falsely identifies =?utf-8?Q?= as the encoded word which cannot be decoded. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.