From 3327572fd250003608f60eef4d0e2a2b3dde9bfd Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sat, 28 Dec 2002 04:02:23 +0000 Subject: [PATCH] - handle bogus search responses more gracefully --- src/imap.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/imap.c b/src/imap.c index 42cea45..0bc9575 100644 --- a/src/imap.c +++ b/src/imap.c @@ -1329,11 +1329,9 @@ imap_append_message (imap_t * imap, int fd, message_t * msg) { arg = next_arg (&s); if (!arg) - { fprintf (stderr, "IMAP error: incomplete SEARCH response\n"); - return -1; - } - uid = atoi (arg); + else + uid = atoi (arg); } } else if (atoi (arg) != (int) Tag)