From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44615 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: Fail to encode attachment filenames properly. Date: Thu, 02 May 2002 20:18:12 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1020364863 8576 127.0.0.1 (2 May 2002 18:41:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 2 May 2002 18:41:03 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 173LVm-0002E5-00 for ; Thu, 02 May 2002 20:41:02 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 173LUx-0006h4-00; Thu, 02 May 2002 13:40:11 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 02 May 2002 13:40:25 -0500 (CDT) Original-Received: from epithumia.math.uh.edu (epithumia.math.uh.edu [129.7.128.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id NAA17163 for ; Thu, 2 May 2002 13:40:19 -0500 (CDT) Original-Received: (from tibbs@localhost) by epithumia.math.uh.edu (8.11.2/8.11.1) id g42Ie0p07884 for ding@hpc.uh.edu; Thu, 2 May 2002 13:40:00 -0500 Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id NAA17089 for ; Thu, 2 May 2002 13:20:32 -0500 (CDT) Original-Received: (qmail 5557 invoked by alias); 2 May 2002 18:20:12 -0000 Original-Received: (qmail 5552 invoked from network); 2 May 2002 18:20:12 -0000 Original-Received: from fepe.post.tele.dk (195.41.46.137) by gnus.org with SMTP; 2 May 2002 18:20:12 -0000 Original-Received: from defun.localdomain ([195.215.96.201]) by fepE.post.tele.dk (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20020502182008.QFGP6079.fepE.post.tele.dk@defun.localdomain> for ; Thu, 2 May 2002 20:20:08 +0200 Original-To: ding@gnus.org In-Reply-To: (novembre+dated+1020762014.ee9fa2@ournature.org's message of "Thu, 2 May 2002 14:11:12 +0000 (UTC)") Original-Lines: 28 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44615 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44615 novembre+dated+1020762014.ee9fa2@ournature.org (Jinhyok Heo) writes: >>>>>> "JH" == Jesper Harder writes: > > JH> That could be a long wait :-) In the mean time (defalias > JH> 'mail-header-encode-parameter 'rfc2045-encode-string) should > JH> make Gnus use the "wrong" encoding, which Outlook can decode. > > Your suggestion doesn't solve the problem. > > For example, with the setting above. An attachment filename generated > the following. > > |Content-Type: application/octet-stream > |Content-Disposition: attachment; filename=020415~~~.hwp > |Content-Transfer-Encoding: base64 > > Korean characters are not properly encoded. "~~~" part was Korean > letters. Right, I only tested it with Latin-1 (where it does work). Does this work for you? (defun jh-broken-ms-encoding (param value) (concat param "=\"" (rfc2047-encode-string value) "\"")) (defalias 'mail-header-encode-parameter 'jh-broken-ms-encoding)