diff options
author | June McEnroe <june@causal.agency> | 2020-04-09 14:22:19 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-04-09 14:22:19 -0400 |
commit | 128491a7281f03023f7271bbac3cfb9c83ebe535 (patch) | |
tree | 77f38e67601417ea3e7ec88287caaecc9a279131 /imap.c | |
parent | Implement login and UIDVALIDITY check (diff) | |
download | bubger-128491a7281f03023f7271bbac3cfb9c83ebe535.tar.gz bubger-128491a7281f03023f7271bbac3cfb9c83ebe535.zip |
Send FETCH for uncached UIDs
Diffstat (limited to '')
-rw-r--r-- | imap.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/imap.c b/imap.c index 620e282..7d623a5 100644 --- a/imap.c +++ b/imap.c @@ -147,18 +147,7 @@ static struct Data parseList(FILE *imap, char close) { if (*ptr) ptr++; struct Data data = { .type = List }; while (*ptr != close) { - if (data.list.len == data.list.cap) { - if (data.list.cap) { - data.list.cap *= 2; - } else { - data.list.cap = 4; - } - data.list.ptr = realloc( - data.list.ptr, sizeof(*data.list.ptr) * data.list.cap - ); - if (!data.list.ptr) err(EX_OSERR, "realloc"); - } - data.list.ptr[data.list.len++] = parseData(imap); + listPush(&data.list, parseData(imap)); } if (*ptr) ptr++; return data; |