summaryrefslogtreecommitdiffstats
path: root/listmenu.c
AgeCommit message (Collapse)Author
2021-07-09listmenu: Fix parsing of list headers for mboxAlexander Sulfrian
The parsing of the headers needs to skip the "From " lines at the start of the messages in mbox format. This now uses the same logic like mutt_read_rfc822_header in parse.c.
2020-12-12Add "headers" parameter to mx_open_message().Kevin McCarthy
This will allow some operations to retrieve only headers, such as ~h pattern matching or the new list menu. Modify the IMAP and POP3 implementation to retrieve only headers when the parameter is set. Headers-only will use the message cache if one exists, but will not populate the message cache (since the body of the message is not downloaded.)
2020-12-09Parse headers on demand for the list menu.Kevin McCarthy
This will be a bit slower over IMAP from the index, but it removes storing all the new headers in the header cache. Since those are not used for anything except the list menu, and the list menu is infrequently used, it's a bit wasteful to store them in the header cache.
2020-12-06Fix list menu label alignment.Kevin McCarthy
Use mutt_strwidth() to find the maximum label length. Use mutt_FormatString() and mutt_format_s() to align the label.
2020-12-06abstract some List-* header processingdgc
List-Post parsing is inline in the List-Post header handler. This moves it to some separate functions so that we can use it for other purposes.