Re: Exists count not updating

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is the new mail coming in via LMTP/deliver?

Can you tell us which version of Cyrus you're using and show your configuration?  In particular I'm interested whether you have an idled running.

Do you have syslogs for what was happening at the time of this session?

Here's my manual session against my personal Fastmail account running 3.7.0-alpha0-713-g1f035dc716-fm-20220617.001-g1f035dc7

(no comments about the size of my INBOX please)

. SELECT INBOX
* 21261 EXISTS
* 130 RECENT
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen $X-ME-Annot-2 $IsNotification $HasAttachment $IsMailingList $Forwarded $IsTrusted foo $NotJunk $Phishing $awakened $new $notify $junk)
* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $X-ME-Annot-2 $IsNotification $HasAttachment $IsMailingList $Forwarded $IsTrusted foo $NotJunk $Phishing $awakened $new $notify $junk \*)] Ok
* OK [UNSEEN 21255] Ok
* OK [UIDVALIDITY 1108730345] Ok
* OK [UIDNEXT 164545] Ok
* OK [HIGHESTMODSEQ 40023464] Ok
* OK [MAILBOXID (567d9ea54215e1e9)] Ok
* OK [URLMECH INTERNAL] Ok
* OK [ANNOTATIONS 65536] Ok
. OK [READ-WRITE] Completed
. IDLE
+ idling
* 21262 EXISTS
* 131 RECENT
done
. OK Completed

And it's clearly working fine.

We have this in our config (obviously, exact config name depends on which slot)

DAEMON {

  # use idled for IMAP IDLE
  idled cmd="idled -C /etc/cyrus/imapd-sloti49n04.conf"

Which creates a idle socket.  If there's something odd with your idle sockets, then updates might not be correctly being pushed to your session, which would cause it not to notice the changes.

Cheers,

Bron.

On Fri, Jun 24, 2022, at 12:01, anderoox@xxxxxxxxx wrote:
So in my quest to figure out what is causing compatibility issues with Thunderbird's Idle implementation, I've come across a rather odd behavior.  It appears that even though new mail is delivered to the mailbox, the "Exists" count is never updated until the mailbox is closed and reopened (via new Select). This renders the Idle command completely useless.  Below shows a manual IMAP session where I initially Select Inbox and use Idle to monitor. I have modified the code slightly so that it reports the exists count even if not changed. You can see while the Idle is active it continues to report 98 exists and 3 recent. At this time I send a new mail to this mailbox, and verify from the logs that it is delivered. The count remains the same, even after I terminate the Idle and issue a Status to get the count. Only after I re-Select the Inbox, then the count updates to 100 exists and 2 recent. Ideas?

. select Inbox
* 98 EXISTS
* 3 RECENT
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen $Forwarded $label5 $label1 $label2 $label3 $label4 nonjunk Junk $MDNSent Old)
* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $Forwarded $label5 $label1 $label2 $label3 $label4 nonjunk Junk $MDNSent Old \*)] Ok
* OK [UNSEEN 96] Ok
* OK [UIDVALIDITY 1372114864] Ok
* OK [UIDNEXT 313892] Ok
* OK [HIGHESTMODSEQ 1] Ok
* OK [URLMECH INTERNAL] Ok
* OK [ANNOTATIONS 65536] Ok
. OK [READ-WRITE] Completed
. Idle
+ idling
* 98 EXISTS
* 3 RECENT
* 98 EXISTS
* 3 RECENT
* 98 EXISTS
* 3 RECENT
* 98 EXISTS
* 3 RECENT
. Done
* 98 EXISTS
* 3 RECENT
* 98 EXISTS
* 3 RECENT
. BAD Invalid Idle continuation
* 98 EXISTS
* 3 RECENT
. Status Inbox (MESSAGES)
* 98 EXISTS
* 3 RECENT
* STATUS Inbox (MESSAGES 546)
. OK Completed
. Select Inbox
* OK [CLOSED] Ok
* 100 EXISTS
* 2 RECENT
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen $Forwarded $label5 $label1 $label2 $label3 $label4 nonjunk Junk $MDNSent Old)
* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $Forwarded $label5 $label1 $label2 $label3 $label4 nonjunk Junk $MDNSent Old \*)] Ok
* OK [UNSEEN 96] Ok
* OK [UIDVALIDITY 1372114864] Ok
* OK [UIDNEXT 313894] Ok
* OK [HIGHESTMODSEQ 1] Ok
* OK [URLMECH INTERNAL] Ok
* OK [ANNOTATIONS 65536] Ok
. OK [READ-WRITE] Completed


--
  Bron Gondwana, CEO, Fastmail Pty Ltd
  brong@xxxxxxxxxxxxxxxx



[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux