json_string(MimeDecParseStateGetStatus(mime_state)));
MimeDecField *field;
- //printf("email LOG\n");
/* From: */
field = MimeDecFindField(entity, "from");
char *s = BytesToString((uint8_t *)url->url,
(size_t)url->url_len);
if (s != NULL) {
- //printf("URL: \"%s\"\n", s);
json_array_append_new(js_url,
json_string(s));
SCFree(s);
char *s = BytesToString((uint8_t *)entity->filename,
(size_t)entity->filename_len);
- //printf("found attachment \"%s\"\n", s);
json_array_append_new(js_attch,
json_string(s));
SCFree(s);
char *s = BytesToString((uint8_t *)url->url,
(size_t)url->url_len);
if (s != NULL) {
- //printf("URL: \"%s\"\n", s);
json_array_append_new(js_url,
json_string(s));
SCFree(s);
} else {
json_decref(js_url);
}
-// FLOWLOCK_UNLOCK(p->flow);
SCReturnPtr(sjs, "json_t");
}
json_decref(sjs);
-// FLOWLOCK_UNLOCK(p->flow);
SCReturnPtr(NULL, "json_t");
}