summaryrefslogtreecommitdiffstats
path: root/imap/message.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2017-09-14 12:43:32 -0700
committerKevin McCarthy <kevin@8t8.us>2017-09-14 12:43:32 -0700
commit963c8ff0dfeb5900ec6ba8a0122ac5d7923b912a (patch)
treea1d547c80f1f419896d8ca60fb18e2e3f7b83894 /imap/message.c
parent19a17aaeff13103dc0981ffe100c16993f42293d (diff)
Improve imap fetch handler to accept an initial UID. (closes #3969)
Gmail sends flag updates with a UID before the FLAGS. The handler was very simple, and so ignored the flag update in that case. Pull the code from msg_parse_fetch(), paring down to just UID and FLAGS. This will handle arbitrary order data items.
Diffstat (limited to 'imap/message.c')
-rw-r--r--imap/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/imap/message.c b/imap/message.c
index 8282ec10..4c882165 100644
--- a/imap/message.c
+++ b/imap/message.c
@@ -1196,7 +1196,7 @@ char* imap_set_flags (IMAP_DATA* idata, HEADER* h, char* s)
hd = h->data;
newh.data = hd;
- dprint (2, (debugfile, "imap_fetch_message: parsing FLAGS\n"));
+ dprint (2, (debugfile, "imap_set_flags: parsing FLAGS\n"));
if ((s = msg_parse_flags (&newh, s)) == NULL)
return NULL;