if (!strncasecmp(bbb, "Content-type:", 13)) {
extract_token(mret[0]->content_type, bbb, 0, '\n', sizeof mret[0]->content_type);
strcpy(mret[0]->content_type, &mret[0]->content_type[13]);
if (!strncasecmp(bbb, "Content-type:", 13)) {
extract_token(mret[0]->content_type, bbb, 0, '\n', sizeof mret[0]->content_type);
strcpy(mret[0]->content_type, &mret[0]->content_type[13]);
/* strip out ";charset=" portion. FIXME do something with
* the charset (like... convert it) instead of just throwing
/* strip out ";charset=" portion. FIXME do something with
* the charset (like... convert it) instead of just throwing
if (!strncasecmp(bbb, "X-Citadel-MSG4-Partnum:", 23)) {
extract_token(mret[0]->mime_chosen, bbb, 0, '\n', sizeof mret[0]->mime_chosen);
strcpy(mret[0]->mime_chosen, &mret[0]->mime_chosen[23]);
if (!strncasecmp(bbb, "X-Citadel-MSG4-Partnum:", 23)) {
extract_token(mret[0]->mime_chosen, bbb, 0, '\n', sizeof mret[0]->mime_chosen);
strcpy(mret[0]->mime_chosen, &mret[0]->mime_chosen[23]);
}
if (!strncasecmp(bbb, "Content-transfer-encoding:", 26)) {
extract_token(encoding, bbb, 0, '\n', sizeof encoding);
strcpy(encoding, &encoding[26]);
}
if (!strncasecmp(bbb, "Content-transfer-encoding:", 26)) {
extract_token(encoding, bbb, 0, '\n', sizeof encoding);
strcpy(encoding, &encoding[26]);
}
remove_token(bbb, 0, '\n');
} while ((bbb[0] != 0) && (bbb[0] != '\n'));
}
remove_token(bbb, 0, '\n');
} while ((bbb[0] != 0) && (bbb[0] != '\n'));