6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/26/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#11679] Imap_Client: Offset gets added to uidnext
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .__..___\ /. . [__)| |[__ >< | | [__)|__|| / \|__|
Comment
> Hi, > > the Kolab_Storage module uses a combination of uidvalidity, uidnext > and the number of items in a folder to determine if it changed (this > will work 99% reliable). > > During my various tests I learned the hard way that uidnext is not > what it seems to be: > An offset gets added to it. The problematic code is in > Imap/Client/Socket.php:4117. > ------------------------------------------- > protected function > _serverResponse(Horde_Imap_Client_Interaction_Server $ob) > { > ... > default: > // Next, look for responses where the keywords occur second. > $first = $token->current(); > > switch (strtoupper($token->next())) { > case 'EXISTS': > // EXISTS response - RFC 3501 [7.3.2] > $mbox_ob = $this->_mailboxOb(); > > $mbox_ob->setStatus(Horde_Imap_Client::STATUS_MESSAGES, $first); > > // Increment UIDNEXT if it is set. > if ($uidnext = > $mbox_ob->getStatus(Horde_Imap_Client::STATUS_UIDNEXT)) { > > $mbox_ob->setStatus(Horde_Imap_Client::STATUS_UIDNEXT, $uidnext + > $first); > } > break; > ------------------------------------------- > > Here an offset "$first" is added to $uidnext. With my specific test, > this turned out to be the exact next "uidnext" value so Kolab_Storage > skipped syncing the folder even though it changed. > > Why is an offset added to uidnext? > (git blame mentions some fix for "condstore + modseq"). > > Thomas >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers