mime: fix output issues

When multiple email addresses were in the 'to' field, sometimes
they would be logged as "\r\n \"Name\" <email>".

The \r\n was added by GetFullValue in the mime decoder, for unknown
reasons. Disabling this seems to have no drawbacks.
pull/1195/head
Victor Julien 11 years ago
parent ebd6737b65
commit 9d2a0c39e5

@ -608,10 +608,12 @@ static uint8_t * GetFullValue(DataValue *dv, uint32_t *len)
while (curr != NULL) {
*len += curr->value_len;
#if 0
/* Add CRLF except on last one */
if (curr->next != NULL) {
*len += 2;
}
#endif
curr = curr->next;
}
@ -629,11 +631,13 @@ static uint8_t * GetFullValue(DataValue *dv, uint32_t *len)
memcpy(val + offset, curr->value, curr->value_len);
offset += curr->value_len;
#if 0 /* VJ unclear why this is needed ? */
/* Add CRLF except on last one */
if (curr->next != NULL) {
memcpy(val + offset, CRLF, 2);
offset += 2;
}
#endif
curr = curr->next;
}
}

Loading…
Cancel
Save