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 ...
This commit is contained in:
Oswald Buddenhagen 2007-04-04 13:27:24 +00:00
parent 9a0539868a
commit 0eb399c672

View File

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