John Stoffel writes: > I tried hacking VM to use something like this, but it broken even > harder: > > quad:~/elisp/vm-8.2.0c/lisp> diff -u ~/elisp/vm-8.2.0b/lisp/vm-imap.el > vm-imap.el > --- /home/john/elisp/vm-8.2.0b/lisp/vm-imap.el 2017-03-17 10:32:24.000000000 > -0400 > +++ vm-imap.el 2017-03-13 11:45:55.000000000 -0400 > @@ -4382,7 +4382,7 @@ > ;;----------------------------- > (vm-imap-send-command > process > - (format "STATUS %s (MESSAGES RECENT)" > (vm-imap-quote-string mailbox))) > + (format "STATUS %s (MESSAGES RECENT UNSEEN)" > (vm-imap-quote-string mailbox))) > (while need-ok > (setq response > (vm-imap-read-response-and-verify process "STATUS")) > (cond ((vm-imap-response-matches > response 'VM 'OK) > >
Now, I understand what you are talking about. You want the number of UNSEEN messages instead of RECENT messages. (Note that the two different concepts.) To achieve that, you can replace all occurrences of RECENT in the vm-imap.el file with UNSEEN. Cheers, Uday
