diff options
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/imap.c | 9 |
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, '{'); |