From c408824619f0dffd3556b1374a2c4f4124640d5d Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 1 May 2020 16:51:28 -0400 Subject: Support continue responses Basically just so that this can be the canonical imap.[ch] for copying into other projects. --- imap.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'imap.c') diff --git a/imap.c b/imap.c index b47a520..e3349a7 100644 --- a/imap.c +++ b/imap.c @@ -173,6 +173,11 @@ struct Resp imapResp(FILE *imap) { data = parseData(imap); if (data.type != Atom) errx(EX_PROTOCOL, "expected tag atom"); resp.tag = data.atom; + if (resp.tag == AtomContinue) { + if (*ptr == ' ') ptr++; + resp.text = ptr; + return resp; + } data = parseData(imap); if (data.type == Number) { -- cgit 1.4.1