On Sat, Nov 11, 2017 at 02:46:30AM +0100, Vincent Lefevre wrote:
> On 2017-11-10 08:36:05 -0800, Kevin J. McCarthy wrote:
> > On Fri, Nov 10, 2017 at 01:12:55PM +0100, Daan van Rossum wrote:
> > > 2. add to status_format a sequence like:
> > >   %R      number of read messages
> > 
> > This one I'm not enthused about.  The count used above is not stored in
> > the context, and I don't really want to add the logic everywhere to keep
> > that count correct.
> 
> But the total number of messages and the number of unread messages
> are in the context. Thus you would only need to do a subtraction
> dynamically. What about the attached patch?

That's true.  Perhaps I misunderstood Daan's intention.  The prompt in
mx_close_mailbox() doesn't include deleted message or flagged messages
if $keep_flagged is set.  I wouldn't want to make that number available
in the status_format.

However, a simple patch like you posted would be fine with me.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA

Attachment: signature.asc
Description: PGP signature

Reply via email to