On Thu, 1 Aug 2002, Simon Josefsson wrote:
Andreas Aardal Hanssen <[EMAIL PROTECTED]> writes:
>> You get UIDNEXT from the SELECT response, then NOOP, IDLE etc will give
>> you status updates, so that you can find this number yourself.
>Well, UIDNEXT is not returned in the untagged responses returned
>during NOOP or IDLE.  Using 1+UIDMAX could work as a guess though.

What exactly do you need UIDNEXT for?

>> It's not explicitly in the 2060 rfc, it's just common sense; it doesn't
>> make any sense to check the status of the folder that you are staring at,
>> using a method that gives you unreliable snapshot info.
>Indeed, thanks for the pointer.  I think this should be made clearer
>in the description for STATUS -- right now it doesn't mention that the
>command partially doesn't work if you use it on the currently selected
>mailbox, which seems like critical information.  Mark?

It does work - it tells you the status of the mailbox at the time that you
submitted the command. But one tick (ok, or two) later, the status can
(and often, will) have changed. The STATUS command will attempt to access
the mailbox that you have currently selected in your case, and the race
between the two will confuse your client, however it's coded.

Andy

-- 
Andreas Aardal Hanssen


Reply via email to