Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <sj@extundo.com>
Cc: ding@gnus.org
Subject: Re: attachment names
Date: 03 Nov 2000 13:26:38 +0100	[thread overview]
Message-ID: <ilupukd1bsx.fsf@barbar.josefsson.org> (raw)
In-Reply-To: <ud7gd9sw1.fsf@cli.de>

[ding: cc of a private response, with a solution to the problem in
this thread]

Christoph Conrad <C.Conrad@cli.de> 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.




  parent reply	other threads:[~2000-11-03 12:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-02 13:17 Vladimir Volovich
2000-11-02 13:44 ` Simon Josefsson
2000-11-03 11:50   ` Christoph Conrad
     [not found]   ` <ud7gd9sw1.fsf@cli.de>
2000-11-03 12:26     ` Simon Josefsson [this message]
2000-11-03 13:13       ` Kai Großjohann
2000-11-03 14:40         ` Per Abrahamsen
2000-11-03 13:19       ` Christoph Conrad
2000-11-03 13:37       ` Christoph Conrad
2000-11-03 14:39       ` Per Abrahamsen
2000-11-03 15:31         ` Simon Josefsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ilupukd1bsx.fsf@barbar.josefsson.org \
    --to=sj@extundo.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).