From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Sun, 09 Dec 2007 18:51:36 -0800 Subject: [sup-talk] [PATCH] label-list-mode with no unread messages In-Reply-To: <1196103315-sup-3020@spooky.local> References: <1195673904-sup-7215@spooky> <1195936974-sup-3449@south> <1196103315-sup-3020@spooky.local> Message-ID: <1197254933-sup-7649@south> Excerpts from Grant Hollingworth's message of Mon Nov 26 10:57:49 -0800 2007: > Handling the unread counts in LabelListMode seems dirty, anyway. You'd > have to watch more than just the :read event, right? If a thread is > archived from the inbox, for instance, the unread count for 'Inbox' > should go down. Yes, probably the ideal solution is to have a CountManager (sigh) which maintains all these numbers, and listens to all events. Then LabelListMode would be a consumer of this. > So I haven't done any of that... but I found a related problem: the > inbox doesn't update if you unarchive a thread elsewhere. I made a > na?ve patch that works in some cases. I've just committed a fairly large changeset that improves the update relaying thing. It should fix most problems, including this one. I think the one thing it doesn't quite get is the case where you remove a label from a thread that's displayed in a different label-search-results-mode buffer. Or something like that. -- William