Return-Path: X-Original-To: apmail-incubator-ooo-issues-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B2002B4E1 for ; Mon, 16 Jan 2012 12:19:54 +0000 (UTC) Received: (qmail 39854 invoked by uid 500); 16 Jan 2012 12:19:54 -0000 Delivered-To: apmail-incubator-ooo-issues-archive@incubator.apache.org Received: (qmail 39831 invoked by uid 500); 16 Jan 2012 12:19:54 -0000 Mailing-List: contact ooo-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-issues@incubator.apache.org Delivered-To: mailing list ooo-issues@incubator.apache.org Received: (qmail 39823 invoked by uid 99); 16 Jan 2012 12:19:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2012 12:19:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.123] (HELO sif.zones.apache.org) (140.211.11.123) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2012 12:19:51 +0000 Received: by sif.zones.apache.org (Postfix, from userid 80) id 8C0912B71; Mon, 16 Jan 2012 12:19:30 +0000 (UTC) From: bugzilla@apache.org To: ooo-issues@incubator.apache.org Subject: DO NOT REPLY [Bug 118791] XMailMessage attachment unusable if file name (ReadableName) contains non-ASCII characters Date: Mon, 16 Jan 2012 12:19:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: api X-Bugzilla-Component: definition X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: arielch@apache.org X-Bugzilla-Status: STARTED X-Bugzilla-Priority: P5 X-Bugzilla-Assigned-To: arielch@apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status CC Platform AssignedTo Ever Confirmed OS/Version Severity Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://issues.apache.org/ooo/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/ooo/show_bug.cgi?id=3D118791 Ariel Constenla-Haile changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |STARTED CC| |arielch@apache.org Platform|PC |All AssignedTo|tbo@openoffice.org |arielch@apache.org Ever Confirmed|0 |1 OS/Version|Windows XP |All Severity|enhancement |normal --- Comment #1 from Ariel Constenla-Haile 2012-01-16 1= 2:19:29 UTC --- According to http://docs.python.org/library/email.message.html?highlight=3Dadd_header#em= ail.message.Message.add_header For each item in the keyword argument dictionary _params, the key is taken = as the parameter name, with underscores converted to dashes (since dashes are illegal in Python identifiers). Normally, the parameter will be added as key=3D"value" unless the value is None, in which case only the key will be = added. If the value contains non-ASCII characters, it must be specified as a three tuple in the format (CHARSET, LANGUAGE, VALUE), where CHARSET is a string naming the charset to be used to encode the value, LANGUAGE can usually be = set to None or the empty string (see RFC 2231 for other possibilities), and VAL= UE is the string value containing non-ASCII code points. An example with non-ASCII characters: msg.add_header('Content-Disposition', 'attachment', filename=3D('iso-8859-1', '', 'Fu=C3=9Fballer.ppt')) Which produces Content-Disposition: attachment; filename*=3D"iso-8859-1''Fu%DFballer.ppt" --=20 Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are on the CC list for the bug.=