On Wed, Nov 23, 2016 at 07:20:06PM +0100, Olaf Hering wrote: > On Thu, Jun 16, Kevin J. McCarthy wrote: > > Thank you for the patches. I'm going to apply patch 1 and 2, but I'd > > like to think about 3, 4, and 5. > > > > With $mail_check_stats set, buffy will have msg counts for all different > > kinds of mailboxes. I think it makes more sense to augment the > > subscribed mailboxes list to have those counts than to beef up the > > directory browser like this. > > How is that a good solution?
Hi Olaf, I'm not sure if you meant that as a rhetorical question. It's a better solution because it works for all mailbox types that the buffy code can monitor, not just maildir. It takes advantage of the existing code instead of adding another "maildir walking" function. > If there are no new mails the list is all scrambled due to "blank > otherwise". If there is a monitored mailbox corresponding to the entry, %n or %m will print a number, including 0. If there is no corresponding monitored mailbox, they will print an empty string. There are several solutions mutt has for aligning text, the simplest of which is a format modifier, e.g. %5n. > Neither %n nor %N work properly, Sorry but you'll need to be more specific than that. The %N functionality hasn't really changed: the BUFFY pointer is passed to add_folder() instead of the BUFFY->new value, but the same value is assigned to "(state->entry)[state->entrylen].new". -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
Description: PGP signature