}
else {
// Once we do the encoding we know the exact size
- encoded_len = CtdlEncodeBase64(encoded_msg, (char *)smr.ser, smr.len, 1);
+ encoded_len = CtdlEncodeBase64(encoded_msg, (char *)smr.ser, smr.len, BASE64_YES_LINEBREAKS);
// Careful now. If the message is gargantuan, trying to write multiple gigamegs in one
// big write operation can make our transport unhappy. So we'll chunk it up 10 KB at a time.
if (mptr != NULL) {
char *aptr;
safestrncpy(smi.meta_content_type, &mptr[13], sizeof smi.meta_content_type);
- striplt(smi.meta_content_type);
+ string_trim(smi.meta_content_type);
aptr = smi.meta_content_type;
while (!IsEmptyStr(aptr)) {
if ((*aptr == ';')