Browse Source

don't error out if we don't get an X-TUID header

the BODY[] item in the FETCH response corresponds to what we requested,
and its presence doesn't imply that it actually contains anything useful
- new messages may appear in the mailbox in addition to those we stored
ourselves, and these will obviously have no TUID.
1.1
Oswald Buddenhagen 11 years ago
parent
commit
f4a192f375
  1. 3
      src/drv_imap.c

3
src/drv_imap.c

@ -922,8 +922,9 @@ parse_fetch_rsp( imap_store_t *ctx, list_t *list, char *s ATTR_UNUSED )
if (!is_atom( tmp ) || strcmp( tmp->val, "]" ))
goto bfail;
tmp = tmp->next;
if (!is_atom( tmp ) || memcmp( tmp->val, "X-TUID: ", 8 ))
if (!is_atom( tmp ))
goto bfail;
if (!memcmp( tmp->val, "X-TUID: ", 8 ))
tuid = tmp->val + 8;
} else {
bfail:

Loading…
Cancel
Save