diff options
Diffstat (limited to '')
-rw-r--r-- | imap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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), |