]> granicus.if.org Git - neomutt/commit
message.c: retry message parse if first attempt is zero-length
authorJoey Pabalinas <joeypabalinas@gmail.com>
Fri, 6 Apr 2018 12:40:27 +0000 (02:40 -1000)
committerRichard Russon <rich@flatcap.org>
Tue, 1 May 2018 13:54:09 +0000 (14:54 +0100)
commit55cb331c8edfca81e57d133a98ef194dd1c18e82
treeef75124b62d949d379462b95ce18c5637fe1f500
parentbfbc5136316df20696fd472552bb90ff000bb5f6
message.c: retry message parse if first attempt is zero-length

On IMAP failure the message body can sometimes be truncated, which
leaves an empty message in the cache that must be manually deleted
to be properly re-fetched.

If the cached message body is zero-length, retry the message parse
once to be sure that the message body actually *is* empty.
imap/message.c