Package: mutt
Version: 1.5.6-20040523+2
Severity: normal
Tags: patch

Many mailers in ex-USSR countries use rfc2047-encoded suggested filenames
for attachments. Mutt doesn't recognize rfc2047-encoded attachment file
name and displays raw '==?Windows-1251?' garbage. I suggest invoking
rfc2047_decode(&ct->filename) in attempt to decode such strings into
meaningful local charset file names. Three-line patch is included.


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux kogan 2.4.25 #18 Mon Jun 28 16:55:20 OMSST 2004 i686
Locale: LANG=ru_RU.koi8r, LC_CTYPE=ru_RU.koi8r

Versions of packages mutt depends on:
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an
ii  libgnutls10                 1.0.4-3      GNU TLS library - runtime library
ii  libidn11                    0.5.2-3      GNU libidn library, implementation
ii  libncursesw5                5.4-4        Shared libraries for terminal hand
ii  libsasl2                    2.1.19-1.5   Authentication abstraction library
ii  sendmail [mail-transport-ag 8.12.9-3     A powerful, efficient, and scalabl

-- no debconf information

--- parse.c.orig        2005-03-11 18:52:03.000000000 +0600
+++ parse.c.new 2005-03-11 18:51:31.000000000 +0600
@@ -418,7 +418,10 @@
     s++;
     SKIPWS (s);
     if ((s = mutt_get_parameter ("filename", (parms = parse_parameters (s)))) 
!= 0)
+      {
       mutt_str_replace (&ct->filename, s);
+      rfc2047_decode(&ct->filename);
+      }
     if ((s = mutt_get_parameter ("name", parms)) != 0)
       ct->form_name = safe_strdup (s);
     mutt_free_parameter (&parms);

Reply via email to