commit 3327572fd250003608f60eef4d0e2a2b3dde9bfd
parent 39446bbef90f57934eb1c5e3f48c6427cc87fad0
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date: Sat, 28 Dec 2002 04:02:23 +0000
- handle bogus search responses more gracefully
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git 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)