Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
b3759c51
...
b3759c516bcd57048ee275ff59cf011d26905ad6
authored
2002-08-23 06:50:08 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Descriptive comment on util_uidvalididty.
1 parent
612b5000
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
imap4d/util.c
imap4d/util.c
View file @
b3759c5
...
...
@@ -1050,7 +1050,15 @@ util_wcard_match (const char *string, const char *pattern, const char *delim)
return
WCARD_NOMATCH
;
}
/* Return the uindvalidity of a mailbox. */
/* Return the uindvalidity of a mailbox.
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. */
int
util_uidvalidity
(
mailbox_t
smbox
,
unsigned
long
*
uidvp
)
{
...
...
Please
register
or
sign in
to post a comment