1050 |
return WCARD_NOMATCH; |
return WCARD_NOMATCH; |
1051 |
} |
} |
1052 |
|
|
1053 |
/* Return the uindvalidity of a mailbox. */ |
/* 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. */ |
1062 |
int |
int |
1063 |
util_uidvalidity (mailbox_t smbox, unsigned long *uidvp) |
util_uidvalidity (mailbox_t smbox, unsigned long *uidvp) |
1064 |
{ |
{ |