Discussion:
imap unread count in folder view?
Ben Fitzgerald
2018-09-16 17:24:57 UTC
Permalink
Hi

any way to get the number of unread messages in the <change-folder>
view?

I'm happy to have the unread count in the cache, it doesn't have to
be the server's count.

regards,
--
Ben Fitzgerald
Kevin J. McCarthy
2018-09-16 17:36:16 UTC
Permalink
Post by Ben Fitzgerald
any way to get the number of unread messages in the <change-folder>
view?
I'm happy to have the unread count in the cache, it doesn't have to
be the server's count.
Check out %n in $folder_format. The behavior of %N changed in 1.7.0.
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
Ben Fitzgerald
2018-09-16 21:31:28 UTC
Permalink
Post by Kevin J. McCarthy
Post by Ben Fitzgerald
any way to get the number of unread messages in the <change-folder>
view?
I'm happy to have the unread count in the cache, it doesn't have to
be the server's count.
Check out %n in $folder_format. The behavior of %N changed in 1.7.0.
fabulous, works a treat. Thanks.

I'll be greedy and ask another. It's related.

Is there a way to hide folders where %n == 0 ?

I have config for imap that shows all the folders by default:

set imap_check_subscribed=yes

Regards,
--
Ben Fitzgerald
Loading...