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 017C299F0 for ; Sun, 4 Dec 2011 19:21:04 +0000 (UTC) Received: (qmail 16215 invoked by uid 500); 4 Dec 2011 19:21:03 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 16168 invoked by uid 500); 4 Dec 2011 19:21: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 16160 invoked by uid 99); 4 Dec 2011 19:21:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2011 19:21:03 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2011 19:21:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E83EAC5A5E for ; Sun, 4 Dec 2011 19:20:39 +0000 (UTC) Date: Sun, 4 Dec 2011 19:20:39 +0000 (UTC) From: "Oleg Kalnichevski (Updated) (JIRA)" To: mime4j-dev@james.apache.org Message-ID: <1166303245.39291.1323026439952.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1576360249.32863.1322776840497.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (MIME4J-209) Problem decoding quoted-printable question mark in subject 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-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski updated MIME4J-209: ------------------------------------- Fix Version/s: 0.7.2 > Problem decoding quoted-printable question mark in subject > ---------------------------------------------------------- > > Key: MIME4J-209 > URL: https://issues.apache.org/jira/browse/MIME4J-209 > Project: JAMES Mime4j > Issue Type: Bug > Affects Versions: 0.7.1 > Environment: Windows XP 64-bit, JDK 1.6.0 update 25, IntelliJ IDEA 10.5.2 > Reporter: Robert Lee > Fix For: 0.7.2 > > > When a subject contains only "Subject: =?ISO-8859-1?Q???=" MIME4j doesn't decode it. It simply returns "=?ISO-8859-1?Q???=". The encoding is however legal with regards to RFC2045: > 6.7 2) (Literal representation) Octets with decimal values of > 33 through 60 inclusive, and 62 through 126, inclusive, > MAY be represented as the US-ASCII characters which > correspond to those octets (EXCLAMATION POINT through > LESS THAN, and GREATER THAN through TILDE, > respectively). > Example message: > From: John Doe > MIME-Version: 1.0 > Content-Type: multipart/mixed; > boundary="XXXXboundary text" > Subject: =?ISO-8859-1?Q???= > This is a multipart message in MIME format. > --XXXXboundary text > Content-Type: text/plain > this is the body text > --XXXXboundary text > Content-Type: text/plain; > Content-Disposition: attachment; > filename="test.txt" > this is the attachment text > --XXXXboundary text-- > Example code fragment: > MessageBuilder builder = new DefaultMessageBuilder(); > Message message = builder.parseMessage(in); > System.out.println("Subject: " + message.getSubject()); > This outputs "Subject: =?ISO-8859-1?Q???=" but should output "Subject: ?". -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira