Package: neomutt
Version: 20201127+dfsg.1-1.2
Severity: normal
Tags: upstream
X-Debbugs-Cc: debbug.neom...@sideload.33mail.com

When the From: field contains an umlaut (“ö”), such as:

  Andreas Rönnquist <redacted>

it then gets encoded for transport and the literal
text is:

  From: Andreas =?UTF-8?B?UsO2bm5xdWlzdA==?= <redacted>

Neomutt properly treats that UTF-8 encoding. However, the 33mail.com
forwarding service apparently re-encodes it in ANSI as follows:

  From: "=?ANSI_X3.4-1968?Q?Andreas_R=3Fnnquist?= 'redacted' via 33Mail" 
<sen...@mailer1.33mail.com>

Neomutt does not decode that particular string. In Neomutt the
=?ANSI… junk appears literally.

Steps to reproduce:

1. Download the mbox file for the following comment:
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027753;msg=10

2. Replace the /From:/ field with:
   From: "=?ANSI_X3.4-1968?Q?Andreas_R=3Fnnquist?= 'redacted' via 33Mail" 
<sen...@mailer1.33mail.com>

3. Launch neomutt: $ neomutt -f "$mbox_file"

I am probably running an old version of neomutt, but I have searched both bug 
trackers (Debian & upstream) for “ANSI” & found no mention of this bug. I also 
searched the debian change logs. So AFAICT the latest neomutt would have this 
bug as well.

-- Package-specific info:
NeoMutt 20201127
Copyright (C) 1996-2020 Michael R. Elkins and others.
NeoMutt comes with ABSOLUTELY NO WARRANTY; for details type 'neomutt -vv'.
NeoMutt is free software, and you are welcome to redistribute it
under certain conditions; type 'neomutt -vv' for details.

System: Linux 5.10.0-19-amd64 (x86_64)
ncurses: ncurses 6.2.20201114 (compiled with 6.2.20201114)
libidn: 1.33 (compiled with 1.33)
GPGME: 1.14.0-unknown
GnuTLS: 3.7.1
libnotmuch: 5.3.0
storage: tokyocabinet

Configure options: --build=x86_64-linux-gnu --prefix=/usr 
{--includedir=${prefix}/include} {--mandir=${prefix}/share/man} 
{--infodir=${prefix}/share/info} --sysconfdir=/etc --localstatedir=/var 
--disable-option-checking --disable-silent-rules 
{--libdir=${prefix}/lib/x86_64-linux-gnu} 
{--libexecdir=${prefix}/lib/x86_64-linux-gnu} --disable-maintainer-mode 
--disable-dependency-tracking --mandir=/usr/share/man --libexecdir=/usr/libexec 
--with-mailpath=/var/mail --gpgme --lua --notmuch --with-ui --gnutls --gss 
--idn --mixmaster --sasl --tokyocabinet --sqlite --autocrypt

Compilation CFLAGS: -g -O2 
-ffile-prefix-map=/build/neomutt-aFsTyZ/neomutt-20201127+dfsg.1=. 
-fstack-protector-strong -Wformat -Werror=format-security -std=c99 
-D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__ -I/usr/include 
-I/usr/include/lua5.4 -DNCURSES_WIDECHAR -isystem /usr/include/mit-krb5

Default options:
  +attach_headers_color +compose_to_sender +compress +cond_date +debug 
  +encrypt_to_self +forgotten_attachments +forwref +ifdef +imap +index_color 
  +initials +limit_current_thread +multiple_fcc +nested_if +new_mail +nntp +pop 
  +progress +quasi_delete +regcomp +reply_with_xorig +sensible_browser +sidebar 
  +skip_quoted +smtp +status_color +timeout +tls_sni +trash 

Compile options:
  +autocrypt +bkgdset +color +curs_set +fcntl -flock -fmemopen +futimens 
  +getaddrinfo +gnutls +gpgme +gss +hcache -homespool +idn +inotify 
  -locales_hack +lua +meta +mixmaster +nls +notmuch -openssl +pgp +regex +sasl 
  +smime +sqlite +start_color +sun_attachment +typeahead 
MAILPATH="/var/mail"
MIXMASTER="mixmaster"
PKGDATADIR="/usr/share/neomutt"
SENDMAIL="/usr/sbin/sendmail"
SYSCONFDIR="/etc"

To learn more about NeoMutt, visit: https://neomutt.org
If you find a bug in NeoMutt, please raise an issue at:
    https://github.com/neomutt/neomutt/issues
or send an email to: <neomutt-de...@neomutt.org>

-- System Information:
Debian Release: 11.5
  APT prefers stable-updates
  APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 
'testing'), (990, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-19-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages neomutt depends on:
ii  libc6             2.31-13+deb11u5
ii  libgnutls30       3.7.1-5+deb11u2
ii  libgpg-error0     1.38-2
ii  libgpgme11        1.14.0-1+b2
ii  libgssapi-krb5-2  1.18.3-6+deb11u3
ii  libidn11          1.33-3
ii  liblua5.4-0       5.4.2-2
ii  libncursesw6      6.2+20201114-2
ii  libnotmuch5       0.31.4-2
ii  libsasl2-2        2.1.27+dfsg-2.1+deb11u1
ii  libsqlite3-0      3.34.1-3
ii  libtinfo6         6.2+20201114-2
ii  libtokyocabinet9  1.4.48-13
ii  sensible-utils    0.0.14

Versions of packages neomutt recommends:
ii  libsasl2-modules  2.1.27+dfsg-2.1+deb11u1
ii  locales           2.31-13+deb11u5
ii  mime-support      3.66

Versions of packages neomutt suggests:
ii  aspell                          0.60.8-3
ii  ca-certificates                 20210119
ii  gnupg                           2.2.27-2+deb11u2
ii  ispell                          3.4.02-2
pn  mixmaster                       <none>
ii  openssl                         1.1.1n-0+deb11u3
ii  postfix [mail-transport-agent]  3.5.13-0+deb11u1
ii  urlview                         0.9-21+b1

Versions of packages neomutt is related to:
ii  neomutt  20201127+dfsg.1-1.2

-- no debconf information

Reply via email to