/[mailutils]/mailutils/imap4d/util.c
ViewVC logotype

Diff of /mailutils/imap4d/util.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.41 by gray, Thu Aug 22 11:16:22 2002 UTC revision 1.42 by gray, Fri Aug 23 06:50:08 2002 UTC
# Line 1050  util_wcard_match (const char *string, co Line 1050  util_wcard_match (const char *string, co
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  {  {

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26