From 80191306f44ab262c83b354d2e4442e807249aeb Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 14 Apr 2020 21:19:00 -0400 Subject: Parse . as an atom on its own --- imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'imap.c') diff --git a/imap.c b/imap.c index 9743ac8..b47a520 100644 --- a/imap.c +++ b/imap.c @@ -97,7 +97,7 @@ static void imapLine(FILE *imap) { } static struct Data parseAtom(void) { - size_t len = strcspn(ptr, " ()[]{\""); + size_t len = (*ptr == '.' ? 1 : strcspn(ptr, " .()[]{\"")); struct Data data = { .type = Atom, .atom = atomn(ptr, len), -- cgit 1.4.1