email-json: output MIME parsing status

If the status is not PARSE_DONE then in that case we may have
imcomplete information. Increasing the stream reassemly depth
in that case would be a good idea.
pull/1667/head
Eric Leblond 11 years ago
parent a233a982ea
commit d7e13c2c03

@ -104,6 +104,9 @@ TmEcode JsonEmailLogJson(JsonEmailLogThread *aft, json_t *js, const Packet *p, F
} }
#endif #endif
json_object_set_new(sjs, "status",
json_string(MimeDecParseStateGetStatus(mime_state)));
if ((entity->header_flags & HDR_IS_LOGGED) == 0) { if ((entity->header_flags & HDR_IS_LOGGED) == 0) {
MimeDecField *field; MimeDecField *field;
//printf("email LOG\n"); //printf("email LOG\n");

Loading…
Cancel
Save