X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Fimap.c;h=eefdd3152a2dffc689744228cdceb70fe94b5ff3;hb=93fff313ededa74d6b1350931a37744729498e3b;hp=d444b410e8b80830f138dd22c23c31f095efa675;hpb=faed98ab64dd3cbd29e674141cd074d6c9f8909c;p=apps%2Fmadmutt.git diff --git a/imap/imap.c b/imap/imap.c index d444b41..eefdd31 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -606,6 +606,17 @@ int imap_open_mailbox (CONTEXT* ctx) if ((pc = imap_get_flags (&(idata->flags), pc)) == NULL) goto fail; } +#ifdef USE_HCACHE + /* save UIDVALIDITY for the header cache */ + else if (ascii_strncasecmp("OK [UIDVALIDITY", pc, 14) == 0) + { + dprint(2, (debugfile, "Getting mailbox UIDVALIDITY\n")); + pc += 3; + pc = imap_next_word(pc); + + sscanf(pc, "%u", &(idata->uid_validity)); + } +#endif else { pc = imap_next_word (pc);