X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fimap%2Fimap_fetch.c;fp=citadel%2Fmodules%2Fimap%2Fimap_fetch.c;h=82168170f9d14a7b6ca53433f6bb649169cade88;hb=18e6b8f58b36b67117864b3dc1ae07c6e72bead8;hp=38de324e694091186eb5b2c415d5eed9598e8680;hpb=721e2cc8f2ea53d2b3b21c7fb0bda27138545006;p=citadel.git diff --git a/citadel/modules/imap/imap_fetch.c b/citadel/modules/imap/imap_fetch.c index 38de324e6..82168170f 100644 --- a/citadel/modules/imap/imap_fetch.c +++ b/citadel/modules/imap/imap_fetch.c @@ -209,8 +209,6 @@ void imap_fetch_rfc822(long msgnum, const char *whichfmt) { * intervening blank line to be part of the headers, not the text. */ headers_size = 0; - text_size = 0; - total_size = 0; if (need_body) { StrBuf *Line = NewStrBuf(); @@ -604,7 +602,7 @@ void imap_strip_headers(StrBuf *section) { StrBufSipLine(Line, CCC->redirect_buffer, &Ptr); if (!isspace(ChrPtr(Line)[0])) { - ok = 0; + if (doing_headers == 0) ok = 1; else { /* we're supposed to print all headers that are not matching the filter list */