Package: mutt-patched Version: 1.6.0-1 Severity: normal Since the upgrade from 1.5.24-1 to 1.6.0-1, the mailbox name shown in the sidebar has the uri://user@ prepended to the name. Given the hard-coded 31-character limit, it's not possible to differentiate some of the accounts I have, in particular, those that have usernames of the format:
first.l...@example.com The full URIs are of the form: imaps://first.l...@example.com@mail.internal.mycompany.test imaps://first.l...@example.com@mail-external.mycompany.test Both get truncated to: imaps://first.l...@example.com@ As a workaround, I tried: set sidebar_shortpath=yes mailboxes imaps://first.l...@example.com@mail.internal.mycompany.test imaps://first.l...@example.com@mail-external.mycompany.test Leads to the mailbox names in the sidebar being an empty string, If an explicit folder name is used, that folder name is shown, but that makes it impossible to differentiate imaps://u...@example.com/INBOX and imaps://u...@example.org/INBOX from each other. Using the attached patch solved it for me, after setting the sidebar width to a larger value. -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (990, 'testing'), (500, 'stable'), (500, 'oldstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.5.3+ (SMP w/4 CPU cores; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages mutt-patched depends on: ii libassuan0 2.4.2-3 ii libc6 2.22-7 ii libcomerr2 1.43~WIP.2016.03.15-2 ii libgnutls30 3.4.11-4 ii libgpg-error0 1.22-1 ii libgpgme11 1.6.0-3 ii libgssapi-krb5-2 1.13.2+dfsg-5 ii libidn11 1.32-3 ii libk5crypto3 1.13.2+dfsg-5 ii libkrb5-3 1.13.2+dfsg-5 ii libncursesw5 6.0+20160319-1 ii libsasl2-2 2.1.26.dfsg1-15 ii libtinfo5 6.0+20160319-1 ii libtokyocabinet9 1.4.48-10 ii mutt 1.6.0-1 mutt-patched recommends no packages. mutt-patched suggests no packages. -- no debconf information
diff -urN mutt-1.6.0/debian/patches/series ../mutt-1.6.0/debian/patches/series --- mutt-1.6.0/debian/patches/series 2016-04-24 05:31:09.000000000 -0700 +++ ../mutt-1.6.0/debian/patches/series 2016-05-06 21:25:11.378323933 -0700 @@ -31,3 +31,4 @@ mutt-patched/sidebar-newonly.patch mutt-patched/sidebar-compose.patch #mutt-patched/nntp.patch +wider.patch diff -urN mutt-1.6.0/debian/patches/wider.patch ../mutt-1.6.0/debian/patches/wider.patch --- mutt-1.6.0/debian/patches/wider.patch 1969-12-31 16:00:00.000000000 -0800 +++ ../mutt-1.6.0/debian/patches/wider.patch 2016-05-06 21:26:32.149856594 -0700 @@ -0,0 +1,11 @@ +--- a/sidebar.c 2016-05-06 21:21:17.436578616 -0700 ++++ b/sidebar.c 2016-05-06 21:21:33.690710298 -0700 +@@ -158,7 +158,7 @@ + sbe.new = new; + sbe.flagged = flagged; + sbe.size = size; +- strncpy(sbe.box, box, 31); ++ strncpy(sbe.box, box, SHORT_STRING - 1); + + safe_realloc(&entry, SBvisual + 2); + entry[SBvisual + 1] = '\0';