Browse Source

accept empty SEARCH IMAP responses - reasonable servers omit them

alltogether, but this is allowed, too. patch by
CCMAIL: Alexander Gerasiov <gq@cs.msu.su>
fixes debian bug #413336

fixed in HEAD a year ago - accidentally ...
wip/ssl-fprint
Oswald Buddenhagen 18 years ago
parent
commit
0eb399c672
  1. 4
      src/drv_imap.c

4
src/drv_imap.c

@ -865,7 +865,9 @@ parse_search( imap_t *imap, char *cmd )
int uid; int uid;
arg = next_arg( &cmd ); arg = next_arg( &cmd );
if (!arg || !(uid = atoi( arg ))) { if (!arg)
return;
if (!(uid = atoi( arg ))) {
fprintf( stderr, "IMAP error: malformed SEARCH response\n" ); fprintf( stderr, "IMAP error: malformed SEARCH response\n" );
return; return;
} }

Loading…
Cancel
Save