From 7eba3af6a0470bf25ec360cc714c1ffd75cb3e7d Mon Sep 17 00:00:00 2001 From: hiro Date: Fri, 2 Mar 2012 01:33:58 +0000 Subject: imap.c: relaxed the response check of AUTHENTICATE and APPEND. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3028 ee746299-78ed-0310-b773-934348b2243d --- libsylph/imap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libsylph') diff --git a/libsylph/imap.c b/libsylph/imap.c index c090384f..26c9f7ff 100644 --- a/libsylph/imap.c +++ b/libsylph/imap.c @@ -3884,7 +3884,7 @@ static gint imap_cmd_authenticate(IMAPSession *session, const gchar *user, return ok; } ok = imap_cmd_gen_recv(session, &buf); - if (ok != IMAP_SUCCESS || buf[0] != '+' || buf[1] != ' ') { + if (ok != IMAP_SUCCESS || buf[0] != '+') { g_free(buf); return IMAP_ERROR; } @@ -4324,7 +4324,7 @@ static gint imap_cmd_append(IMAPSession *session, const gchar *destfolder, } ok = imap_cmd_gen_recv(session, &ret); - if (ok != IMAP_SUCCESS || ret[0] != '+' || ret[1] != ' ') { + if (ok != IMAP_SUCCESS || ret[0] != '+') { log_warning(_("can't append %s to %s\n"), file, destfolder_); g_free(ret); fclose(tmp); -- cgit v1.2.3