(util_uidvalidity): New function. A wrapper
around mailbox_uidvalidity. When a mailbox is selected whose first message does not keep X-UIDVALIDITY value, the uidvalidity is computed based on the return of time(). Now, if we call "EXAMINE mailbox" or "STATUS mailbox (UIDVALIDITY)" the same mailbox is opened second time and the uidvalidity recalculated. Thus each subsequent call to EXAMINE or STATUS upon an already selected mailbox will return different uidvalidity value. To avoid this, util_uidvalidity() first sees if it is asked to operate upon an already opened mailbox and if so, returns previously computed value.
Showing
1 changed file
with
14 additions
and
0 deletions
-
Please register or sign in to post a comment