From 128491a7281f03023f7271bbac3cfb9c83ebe535 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 9 Apr 2020 14:22:19 -0400 Subject: Send FETCH for uncached UIDs --- imap.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'imap.c') 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; -- cgit 1.4.1