about summary refs log tree commit diff
path: root/imap.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--imap.c5
1 files changed, 5 insertions, 0 deletions
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) {