Bug#958935: neomutt does not display contents of IMAP folders that have subfolders

2020-04-27 Thread Ryan Kavanagh
Control: retitle -1 neomutt frequently and randomly fails to open IMAP mailboxes
Control: importance -1 important

I am unable to find the exact deciding factors behind neomutt's failure
to open certain IMAP folders. I am able to open most top level folders
without issue. Any IMAP mailbox that is a subfolder or that has
subfolders seems to be problematic.

Debian.neomutt is an example problematic folder. When I try to open it, I get
the following sequence of messages.

[08:45:28] Mailbox is unchanged
[08:45:29] Reading imaps://imap.rak.ac/Debian.neomutt...
[08:45:29] Selecting Debian.neomutt...
[08:45:29] Sorting mailbox...
[08:45:29] Mailbox r...@imap.rak.ac closed
[08:45:29] Looking up imap.rak.ac...
[08:45:30] Connecting to imap.rak.ac...
[08:45:30] SSL/TLS connection using TLS1.2 (ECDHE-RSA/AES-256-GCM/AEAD)
[08:45:31] Logging in...
[08:45:31] New mail in X
[08:45:36] Mailbox is unchanged

At this point, the mailbox has been "opened", but I see garbage on my screen
(see the attached screenshot). If I try again, then neomutt manages to open
the mailbox.

[08:45:37] Reading imaps://imap.rak.ac/Debian.neomutt...
[08:45:37] Selecting Debian.neomutt...
[08:45:37] Sorting mailbox...
[08:45:38] Mailbox r...@imap.rak.ac closed
[08:45:38] Looking up imap.rak.ac...
[08:45:39] Connecting to imap.rak.ac...
[08:45:39] SSL/TLS connection using TLS1.2 (ECDHE-RSA/AES-256-GCM/AEAD)
[08:45:40] Logging in...

I'm bumping the severity to "important" because this renders neomutt
pretty unusable as an IMAP mail client.

-- 
|)|/  Ryan Kavanagh  | GPG: 4E46 9519 ED67 7734 268F
|\|\  https://rak.ac |  BD95 8F7B F8FC 4A11 C97A


signature.asc
Description: PGP signature


Bug#958935: neomutt does not display contents of IMAP folders that have subfolders

2020-04-26 Thread Ryan Kavanagh
Package: neomutt
Version: 20191207+dfsg.1-1.1

neomutt does not open imap folders that have subfolders.

Instead, neomutt prints a message saying that the mailbox has been
closed, attempts to reconnect. In most cases, it prints garbage on the
screen in the region where the index should be located. Only very rarely
does it succeeds in displaying the contents of the mailbox.

neomutt successfully displays the contents of folders without
subfolders.

Please see the attached neomutt debug log, where I attempt to open the
IMAP folder "+Debian". This folder has several subfolders.

My current configuration files can be found here:
https://github.com/ryanakca/ryanakca-dotfiles/tree/ab8f08d77981bcf893fc54a86c97d5c27ece3f65

-- Package-specific info:
NeoMutt 20191207
Copyright (C) 1996-2016 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.5.0-2-amd64 (x86_64)
ncurses: ncurses 6.2.20200212 (compiled with 6.2.20200212)
libidn: 1.33 (compiled with 1.33)
GPGme: 1.13.1-unknown
libnotmuch: 5.2.0
hcache backends: 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-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

Compilation CFLAGS: -g -O2 
-fdebug-prefix-map=/build/neomutt-bCiSXv/neomutt-20191207+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.3 -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 +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: 

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.5.0-2-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_CA.UTF-8), LANGUAGE=en_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set 
to en_CA.UTF-8)
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-0experimental0
ii  libgnutls30   3.6.13-2
ii  libgpg-error0 1.37-1
ii  libgpgme111.13.1-7+b1
ii  libgssapi-krb5-2  1.17-7
ii  libidn11  1.33-2.2
ii  liblua5.3-0   5.3.3-1.1+b1
ii  libncursesw6  6.2-1
ii  libnotmuch5   0.29.3-1+b2
ii  libsasl2-22.1.27+dfsg-2
ii  libtinfo6 6.2-1
ii  libtokyocabinet9  1.4.48-13

Versions of packages neomutt recommends:
ii  libsasl2-modules  2.1.27+dfsg-2
ii  locales   2.31-0experimental0
ii  mime-support  3.64

Versions of packages neomutt suggests:
ii  aspell0.60.8-1
ii  ca-certificates   20190110
ii  gnupg 2.2.20-1
ii  ispell3.4.00-8
pn  mixmaster 
ii  opensmtpd [mail-transport-agent]  6.6.4p1-1
ii  openssl   1.1.1g-1
pn  urlview   

Versions of packages neomutt is related to:
ii  neomutt  20191207+dfsg.1-1.1

-- no debconf information

-- 
|)|/  Ryan Kavanagh  | GPG: 4E46 9519 ED67 7734 268F
|\|\  https://rak.ac |  BD95 8F7B F8FC 4A11 C97A
[2020-04-26 17:37:44] NeoMutt-20191207 debugging at level 3
[2020-04-26 17:37:44]