Hi again, Actually no, it does not seem to work, also for non-flat layouts... the new mails count does not stay at 0 after a restart of mutt. Don't know what I saw before.
This mail thread from 5 years ago sounds similar: http://does-not-exist.org/mail-archives/mutt-dev/msg07456.html Was this issue supposed to be fixed with any version between 1.5.13 and 1.5.21? Cheers, Linus On Tue, Jan 24, 2012 at 11:58:34AM +0100, Linus Lüssing wrote: > Hmm, okay, what I noticed is this: > > The mailbox view (hitting 'c', then '?', then <TAB>) kind of > works if I have a non-flat maildir layout (so having a maildir as > something like .INBOX.Linus in the file system): > > ~~~ > 2 271 imap://test:[email protected]/Linus > ~~~ > > After opening that maildir the count then shows 0 instead of 271. > And even after restarting mutt, this count remains 0 until a new > email arrives. > > However, it does not work for a flat maildir layout as I used to > have it (so just having .Linus in the file system). The count > shows 0 after opening the maildir - but it is back to 271 after > restarting mutt. > > Using this mailbox view with a non-flat maildir layout will do for > now for me as a workaround. However I'm still wondering, whether > the IMAP folder view is supposed to show new emails in a similar > fashion. > > Cheers, Linus > > > On Sun, Jan 22, 2012 at 04:35:49PM +0100, Linus Lüssing wrote: > > Hi, > > > > I'm currently trying to migrate from a local Maildir to an IMAP > > server. So far I was used to have a maildir marked with an 'N' in > > mutt if there was a new email in there, like: > > ~~~ > > 21 N drwxr-x--- 5 fetchmai mail 4.0K Jan 22 12:11 .Linus/ > > ~~~ > > > > Which is pretty handy, because I don't want to have to access > > every single maildir to check whether I have new emails there. > > > > However, I do not seem to have this anymore when trying to access my > > mails via IMAP, it for instance just says: > > > > ~~~ > > 16 IMAP Linus > > ~~~ > > > > Am I doing something wrong in Dovecot or in Mutt? Or is this > > somehow not supported with IMAP? > > > > > > My muttrc for IMAP looks like this (I'm trying to start minimal): > > ~~~ > > set folder="imap://test:[email protected]/" > > set spoolfile="imap://test:[email protected]/" > > set imap_check_subscribed=yes > > ~~~ > > > > The muttrc for the local Maildirs looked like this: > > ~~~ > > ignore * > > unignore From: To: Cc: Subject: Date: #Only these are shown in the > > header > > set from="[email protected]" > > set realname="Linus Lüssing" > > set use_from=yes > > set envelope_from="yes" > > set editor = "/usr/bin/vim +\"set nomodeline\" +\"set tw=66\"" > > set sendmail="/usr/bin/msmtp" > > set mbox_type=Maildir > > set folder="/var/mail/Maildir" > > set mask="!^\\.[^.]" > > set mbox="/var/mail/Maildir" > > set record="+.Sent" > > set postponed="+.Drafts" > > mailboxes ! + `\ > > for file in /var/mail/Maildir/.*; do \ > > box=$(basename "$file"); \ > > if [ ! "$box" = '.' -a ! "$box" = '..' -a ! "$box" = > > '.customflags' \ > > -a ! "$box" = '.subscriptions' ]; then \ > > echo -n "\"+$box\" "; \ > > fi; \ > > done` > > mailboxes "/var/mail/linus" > > ~~~ > > > > And I'm using Mutt 1.5.20 (2009-06-14) and dovecot-imapd 1:1.2.15-7 > > on a Debian Squeeze. > > > > > > Cheers, Linus > > > > > > PS: Thanks for sharing Mutt and its code with the world, > > it's been a very reliable email client for me for ages. > > >
