From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/33140 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: attachment names Date: 03 Nov 2000 13:26:38 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035169301 23551 80.91.224.250 (21 Oct 2002 03:01:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:01:41 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id CD73DD049A for ; Fri, 3 Nov 2000 07:33:38 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id GAB12238; Fri, 3 Nov 2000 06:26:26 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 03 Nov 2000 06:25:45 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id GAA17576 for ; Fri, 3 Nov 2000 06:25:35 -0600 (CST) Original-Received: from dolk.extundo.com (dolk.extundo.com [195.42.214.242]) by mailhost.sclp.com (Postfix) with ESMTP id 9E63FD049A for ; Fri, 3 Nov 2000 07:26:00 -0500 (EST) Original-Received: from barbar.josefsson.org (localhost.localdomain [127.0.0.1]) (authenticated) by dolk.extundo.com (8.11.1/8.11.1) with ESMTP id eA3CPpG10373; Fri, 3 Nov 2000 13:25:57 +0100 Original-To: C.Conrad@cli.de In-Reply-To: Original-Lines: 26 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:33140 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:33140 [ding: cc of a private response, with a solution to the problem in this thread] Christoph Conrad writes: > Simon> No, gnus is correct, outlook is violating MIME specs. > Simon> However, it doesn't seem to be alone in this behaviour, so > Simon> perhaps we should try to support QP encoded parameter values > Simon> anyway. (The "proper" solution would be to make every other > Simon> client support rfc 2231.) > > I found a simple workaround: The following won't require modifying gnus, which probably is more future-safe. (require 'mail-parse) (defun my-parse-string (string) (rfc2231-parse-string (rfc2047-decode-string string))) (defalias 'mail-header-parse-content-type 'my-parse-string) (defalias 'mail-header-parse-content-disposition 'my-parse-string) Do you all think Gnus should handle this by default, even though it's wrong? It would cause problems (only) if someone actually intended the filename to be a valid QP encoded word. That isn't very likely IMHO.