Hello,
I'm also hit by this bug and I found upstream suggested a patch but
nobody tried that. So I did :-)
http://marc.info/?l=mutt-dev&m=130906342323441&w=2
http://hg.bikeshed.us/mutt/rev/0e4f1782ea2e
The patch is reported to fix another upstream bug (#3288) but upstream
developer suggested it should fix this one (#3482) as well.
I looked at it and found this patch is applied in debian package but
partially only. Can't say why. After adding missing hunks my mutt
stopped crashing.
Please take a look.
Milan Vancura
-- Package-specific info:
Mutt 1.5.21 (2010-09-15)
Copyright (C) 1996-2009 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.
System: Linux 3.2.0-4-amd64 (x86_64)
ncurses: ncurses 5.9.20110404 (compiled with 5.9)
libidn: 1.25 (compiled with 1.25)
hcache backend: tokyocabinet 1.4.47
Compile options:
-DOMAIN
+DEBUG
-HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE +USE_FCNTL -USE_FLOCK
+USE_POP +USE_IMAP +USE_SMTP
-USE_SSL_OPENSSL +USE_SSL_GNUTLS +USE_SASL +USE_GSS +HAVE_GETADDRINFO
+HAVE_REGCOMP -USE_GNU_REGEX
+HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET
+HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM
+CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME +CRYPT_BACKEND_GPGME
-EXACT_ADDRESS -SUN_ATTACHMENT
+ENABLE_NLS -LOCALES_HACK +COMPRESSED +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET
+HAVE_LANGINFO_YESEXPR
+HAVE_ICONV -ICONV_NONTRANS +HAVE_LIBIDN +HAVE_GETSID +USE_HCACHE
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/share/mutt"
SYSCONFDIR="/etc"
EXECSHELL="/bin/sh"
MIXMASTER="mixmaster"
To contact the developers, please mail to <[email protected]>.
To report a bug, please visit http://bugs.mutt.org/.
misc/am-maintainer-mode
features/ifdef
features/xtitles
features/trash-folder
features/purge-message
features/imap_fast_trash
features/sensible_browser_position
features-old/patch-1.5.4.vk.pgp_verbose_mime
features/compressed-folders
features/compressed-folders.debian
debian-specific/Muttrc
debian-specific/Md.etc_mailname_gethostbyname.diff
debian-specific/use_usr_bin_editor.diff
debian-specific/correct_docdir_in_man_page.diff
debian-specific/dont_document_not_present_features.diff
debian-specific/document_debian_defaults
debian-specific/assumed_charset-compat
debian-specific/467432-write_bcc.patch
debian-specific/566076-build_doc_adjustments.patch
misc/define-pgp_getkeys_command.diff
misc/gpg.rc-paths
misc/smime.rc
upstream/531430-imapuser.patch
upstream/537818-emptycharset.patch
upstream/543467-thread-segfault.patch
upstream/542817-smimekeys-tmpdir.patch
upstream/548577-gpgme-1.2.patch
upstream/553321-ansi-escape-segfault.patch
upstream/568295-references.patch
upstream/547980-smime_keys-chaining.patch
upstream/528233-readonly-open.patch
upstream/228671-pipe-mime.patch
upstream/383769-score-match.patch
upstream/578087-header-strchr.patch
upstream/603288-split-fetches.patch
upstream/537061-dont-recode-saved-attachments.patch
upstream/608706-fix-spelling-errors.patch
upstream/620854-pop3-segfault.patch
upstream/611412-bts-regexp.patch
upstream/624058-gnutls-deprecated-set-priority.patch
upstream/624085-gnutls-deprecated-verify-peers.patch
upstream/584138-mx_update_context-segfault.patch
upstream/619216-gnutls-CN-validation.patch
upstream/611410-no-implicit_autoview-for-text-html.patch
upstream/path_max
upstream/b77c60-avoid-creating-sparse-ctx-array.patch
misc/579967-fixes-german-translation.patch
mutt.org
-- System Information:
Debian Release: 7.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages mutt depends on:
ii libc6 2.13-38
ii libcomerr2 1.42.5-1.1
ii libgnutls26 2.12.20-7
ii libgpg-error0 1.10-3.1
ii libgpgme11 1.2.0-1.4
ii libgssapi-krb5-2 1.10.1+dfsg-5+deb7u1
ii libidn11 1.25-2
ii libk5crypto3 1.10.1+dfsg-5+deb7u1
ii libkrb5-3 1.10.1+dfsg-5+deb7u1
ii libncursesw5 5.9-10
ii libsasl2-2 2.1.25.dfsg1-6+deb7u1
ii libtinfo5 5.9-10
ii libtokyocabinet9 1.4.47-2
Versions of packages mutt recommends:
ii libsasl2-modules 2.1.25.dfsg1-6+deb7u1
ii locales 2.13-38
ii mime-support 3.52-1
ii msmtp-mta [mail-transport-agent] 1.4.28-1
Versions of packages mutt suggests:
ii aspell 0.60.7~20110707-1
ii ca-certificates 20130119
ii gnupg 1.4.12-7
pn mixmaster <none>
ii openssl 1.0.1e-2
pn urlview <none>
Versions of packages mutt is related to:
ii mutt 1.5.21-6.2milan1
pn mutt-dbg <none>
pn mutt-patched <none>
-- Configuration Files:
/etc/Muttrc.d/colors.rc [Errno 2] No such file or directory:
u'/etc/Muttrc.d/colors.rc'
-- no debconf information
Index: mutt-1.5.21/imap/message.c
===================================================================
--- mutt-1.5.21.orig/imap/message.c 2013-07-15 16:01:20.000000000 +0200
+++ mutt-1.5.21/imap/message.c 2013-07-15 16:03:48.000000000 +0200
@@ -211,6 +211,7 @@
dprint (3, (debugfile, "bad cache entry at %d, giving up\n", h.sid - 1));
imap_free_header_data((void**) (void*) &h.data);
evalhc = 0;
+ idx--;
}
}
while (rc != IMAP_CMD_OK && mfhrc == -1);
@@ -295,6 +296,7 @@
dprint (1, (debugfile, "imap_read_headers: skipping FETCH response for "
"unknown message number %d\n", h.sid));
mfhrc = -1;
+ idx--;
continue;
}
/* May receive FLAGS updates in a separate untagged response (#2935) */
@@ -302,6 +304,7 @@
{
dprint (2, (debugfile, "imap_read_headers: message %d is not new\n",
h.sid));
+ idx--;
continue;
}