Descriptive comment on util_uidvalididty.
Showing
1 changed file
with
9 additions
and
1 deletions
... | @@ -1050,7 +1050,15 @@ util_wcard_match (const char *string, const char *pattern, const char *delim) | ... | @@ -1050,7 +1050,15 @@ util_wcard_match (const char *string, const char *pattern, const char *delim) |
1050 | return WCARD_NOMATCH; | 1050 | return WCARD_NOMATCH; |
1051 | } | 1051 | } |
1052 | 1052 | ||
1053 | /* Return the uindvalidity of a mailbox. */ | 1053 | /* Return the uindvalidity of a mailbox. |
1054 | When a mailbox is selected, whose first message does not keep X-UIDVALIDITY | ||
1055 | value, the uidvalidity is computed based on the return of time(). Now, | ||
1056 | if we call "EXAMINE mailbox" or "STATUS mailbox (UIDVALIDITY)" the same | ||
1057 | mailbox is opened second time and the uidvalidity recalculated. Thus each | ||
1058 | subsequent call to EXAMINE or STATUS upon an already selected mailbox | ||
1059 | will return different uidvalidity value. To avoid this, util_uidvalidity() | ||
1060 | first sees if it is asked to operate upon an already opened mailbox | ||
1061 | and if so, returns previously computed value. */ | ||
1054 | int | 1062 | int |
1055 | util_uidvalidity (mailbox_t smbox, unsigned long *uidvp) | 1063 | util_uidvalidity (mailbox_t smbox, unsigned long *uidvp) |
1056 | { | 1064 | { | ... | ... |
-
Please register or sign in to post a comment