<<< Date Index >>>     <<< Thread Index >>>

[Mutt] #3154: new message count not reported until :mailboxes set a second time



#3154: new message count not reported until :mailboxes set a second time
----------------------+-----------------------------------------------------
 Reporter:  agriffis  |       Owner:  mutt-dev
     Type:  defect    |      Status:  new     
 Priority:  minor     |   Milestone:          
Component:  mutt      |     Version:  1.5.19  
 Keywords:            |  
----------------------+-----------------------------------------------------
 My muttrc builds up the mailboxes list as follows (--dumprc is part of
 a wrapper, and I inserted blank lines for clarity):

   $ mutt-hp --dumprc | grep 'mailboxes\|set folder'

     macro index,pager y "<change-folder>?<toggle-mailboxes>" "show
 incoming mailboxes list"

     mailboxes imaps://mail.griffis1.net/INBOX
     set folder=imaps://mail.griffis1.net/INBOX

     mailboxes imaps://mail.hp.com/INBOX
     set folder=imaps://mail.hp.com/INBOX
     mailboxes +xen
     mailboxes +fedora
     mailboxes +libvir
     mailboxes +thincrust
     mailboxes +linux-ia64

     mailboxes imaps://mail.boston.redhat.com/INBOX
     set folder=imaps://mail.boston.redhat.com/INBOX

     set spoolfile=imaps://mail.hp.com/INBOX
     set folder=imaps://mail.hp.com/INBOX   # restore to default

 So when I start mutt I'm at my HP inbox and mutt has a connection to the
 HP imap server.  This works well except that the first time I hit 'y' I
 see a list of empty boxes:

   1   0         imaps://mail.boston.redhat.com/INBOX
   2   0         imaps://mail.griffis1.net/INBOX
   3   0         imaps://mail.hp.com/INBOX
   4   0         imaps://mail.hp.com/INBOX/fedora
   5   0         imaps://mail.hp.com/INBOX/libvir
   6   0         imaps://mail.hp.com/INBOX/linux-ia64
   7   0         imaps://mail.hp.com/INBOX/thincrust
   8   0         imaps://mail.hp.com/INBOX/xen

 So now the strange part: If I reset the mailboxes list then reenter this
 menu, it works right.  This is the same list of commands as shown above
 from my dumped muttrc:

   :unmailboxes *
   :mailboxes imaps://mail.griffis1.net/INBOX
   :set folder=imaps://mail.griffis1.net/INBOX
   :mailboxes imaps://mail.hp.com/INBOX
   :set folder=imaps://mail.hp.com/INBOX
   :mailboxes +xen
   :mailboxes +fedora
   :mailboxes +libvir
   :mailboxes +thincrust
   :mailboxes +linux-ia64
   :mailboxes imaps://mail.boston.redhat.com/INBOX
   :set folder=imaps://mail.boston.redhat.com/INBOX
   :set folder=imaps://mail.hp.com/INBOX

 Now I hit 'q' to return to the index, then 'y' and I see:

   1   0         imaps://mail.boston.redhat.com/INBOX
   2   0         imaps://mail.griffis1.net/INBOX
   3   0         imaps://mail.hp.com/INBOX
   4   31801     imaps://mail.hp.com/INBOX.fedora
   5   15607     imaps://mail.hp.com/INBOX.libvir
   6   14456     imaps://mail.hp.com/INBOX.linux-ia64
   7   213       imaps://mail.hp.com/INBOX.thincrust
   8   35594     imaps://mail.hp.com/INBOX.xen

 The zeroes on the first two entries are fine because mutt hasn't opened
 connections to the other two imap servers yet.

 I'm attaching the -d3 output of the sequence listed above (mutt-hp, y,
 cut-n-paste commands, q, y, q, q).  I removed the parse_alias and snipped
 the FETCH lines.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3154>
Mutt <http://www.mutt.org/>
The Mutt mail user agent