diff options
author | June McEnroe <june@causal.agency> | 2020-04-14 21:19:00 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-04-14 21:19:00 -0400 |
commit | 80191306f44ab262c83b354d2e4442e807249aeb (patch) | |
tree | 4dbb0dd3102461a3ad728cd07fb80b0ab5d497ef /imap.c | |
parent | Find text content for Atom in multipart/mixed and /alternative (diff) | |
download | bubger-80191306f44ab262c83b354d2e4442e807249aeb.tar.gz bubger-80191306f44ab262c83b354d2e4442e807249aeb.zip |
Parse . as an atom on its own
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), |