[Mutt] #3035: Using soft-fill in index_format can cause blank lines in the index for large subjects
#3035: Using soft-fill in index_format can cause blank lines in the index for
large subjects
I've run into a few cases where there were empty lines in my mailbox
index. I finally tracked this down to using soft-fill in index_format and
messages with long subjects (often commit mail from various SCMs). The
exact index_format I'm using is:
"%4C %Z %{%b %d} %-15.15F (%4c) %?H?[%7H] ?%s%* %y"
I'll attach an mbox that exhibits this. There are subjects ranging from
980 to 1000 characters. I don't see any of the messages in the index with
subjects larger than 984. The messages are there and can be selected.
There's just no text in the index for them.
This is easy to reproduce using a muttrc containing nothing but:
set index_format="%4C %Z %{%b %d} %-15.15F (%4c) %?H?[%7H] ?%s%* %y"
and the command:
mutt -n -F /path/to/.muttrc -f /path/to/mutt-soft-fill-bug.mbox
I've tested this against 5351:fd741c1922f3 as we as with 1.5.17. mutt -v
from my build of hg tip is also attached.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3035>