X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fimap%2Fimap_fetch.c;h=702a27f10cab0d92929355c4c4f8b8c2ba046505;hb=10f27d5f33709ef36708794b736a1f9182439d65;hp=5fedc283afde9e2a7670625bab768e63f8e1415b;hpb=37a80e0a4566d0f3f1f8d6468ef3fbf7ba458cd8;p=citadel.git diff --git a/citadel/modules/imap/imap_fetch.c b/citadel/modules/imap/imap_fetch.c index 5fedc283a..702a27f10 100644 --- a/citadel/modules/imap/imap_fetch.c +++ b/citadel/modules/imap/imap_fetch.c @@ -294,42 +294,42 @@ void imap_load_part(char *name, char *filename, char *partnum, char *disp, ); if (!strcasecmp(partnum, desired_section)) { - iaputs(content, length); + client_write(content, length); } snprintf(mimebuf2, sizeof mimebuf2, "%s.MIME", partnum); if (!strcasecmp(desired_section, mimebuf2)) { - IAPuts("Content-type: "); - _iaputs(cbtype); + client_write(HKEY("Content-type: ")); + client_write(cbtype, strlen(cbtype)); if (!IsEmptyStr(cbcharset)) { - IAPuts("; charset=\""); - _iaputs(cbcharset); - IAPuts("\""); + client_write(HKEY("; charset=\"")); + client_write(cbcharset, strlen(cbcharset)); + client_write(HKEY("\"")); } if (!IsEmptyStr(name)) { - IAPuts("; name=\""); - _iaputs(name); - IAPuts("\""); + client_write(HKEY("; name=\"")); + client_write(name, strlen(name)); + client_write(HKEY("\"")); } - IAPuts("\r\n"); + client_write(HKEY("\r\n")); if (!IsEmptyStr(encoding)) { - IAPuts("Content-Transfer-Encoding: "); - _iaputs(encoding); - IAPuts("\r\n"); + client_write(HKEY("Content-Transfer-Encoding: ")); + client_write(encoding, strlen(encoding)); + client_write(HKEY("\r\n")); } if (!IsEmptyStr(encoding)) { - IAPuts("Content-Disposition: "); - _iaputs(disp); + client_write(HKEY("Content-Disposition: ")); + client_write(disp, strlen(disp)); if (!IsEmptyStr(filename)) { - IAPuts("; filename=\""); - _iaputs(filename); - IAPuts("\""); + client_write(HKEY("; filename=\"")); + client_write(filename, strlen(filename)); + client_write(HKEY("\"")); } - IAPuts("\r\n"); + client_write(HKEY("\r\n")); } - IAPrintf("Content-Length: %ld\r\n\r\n", (long)length); + cprintf("Content-Length: %ld\r\n\r\n", (long)length); } }