-- i'm not sure how multipart messages ever worked. the response from nmap with the mime bodystructure is quite long, but we'd only ever copy 4 bytes worth of it and try and use that to parse the data.

This commit is contained in:
pfelt
2007-10-25 04:42:23 +00:00
parent 8a29e2b972
commit f91943147e
+5 -2
View File
@@ -3027,8 +3027,11 @@ GetMimeInfo(ImapSession *session, FetchStruct *FetchRequest)
while(ccode != 1000) {
if ((ccode > 2001) && (ccode < 2005)) {
char *entry;
entry = MemMalloc(sizeof(char) * (strlen(session->store.response) + 1));
memcpy(entry, session->store.response, sizeof(entry));
size_t len = sizeof(char) * (strlen(session->store.response) + 1);
entry = MemMalloc(len);
memcpy(entry, session->store.response, len);
BongoArrayAppendValue(FetchRequest->messageDetail.mimeInfo, entry);
ccode = NMAPReadResponse(session->store.conn, session->store.response, sizeof(session->store.response), FALSE);
continue;