aboutsummaryrefslogtreecommitdiff
path: root/libsylph/imap.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-12-28 06:45:10 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-12-28 06:45:10 +0000
commita6fa70def3d80d45536e1baa32f408adc29f6f25 (patch)
tree7ea55cfad4da27041dfb4e8eb3a22a150f71c25f /libsylph/imap.c
parent2c02159ea90e68f3851286ae52bcd95d45811448 (diff)
fixed out of sync response on FETCH.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1462 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/imap.c')
-rw-r--r--libsylph/imap.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libsylph/imap.c b/libsylph/imap.c
index 868b5e2b..4ecb3778 100644
--- a/libsylph/imap.c
+++ b/libsylph/imap.c
@@ -3608,10 +3608,11 @@ static gint imap_cmd_fetch(IMAPSession *session, guint32 uid,
if (ok != IMAP_SUCCESS)
return ok;
-#define RETURN_ERROR_IF_FAIL(cond) \
- if (!(cond)) { \
- g_free(buf); \
- return IMAP_ERROR; \
+#define RETURN_ERROR_IF_FAIL(cond) \
+ if (!(cond)) { \
+ g_free(buf); \
+ ok = imap_cmd_ok(session, NULL); \
+ return IMAP_ERROR; \
}
cur_pos = strchr(buf, '{');