{
ucl_object_iter_t it = NULL;
ucl_object_t *cur;
+ gchar *emitted;
while ((cur = ucl_iterate_object (obj, &it, true)) != NULL) {
if (g_ascii_strcasecmp (ucl_object_key (cur), "message-id") == 0) {
else if (g_ascii_strcasecmp (ucl_object_key (cur), "queue-id") == 0) {
rspamd_fprintf (stdout, "Queue-ID: %s\n", ucl_object_tostring (cur));
}
+ else if (g_ascii_strcasecmp (ucl_object_key (cur), "urls") == 0) {
+ emitted = ucl_object_emit (cur, UCL_EMIT_JSON_COMPACT);
+ rspamd_fprintf (stdout, "Urls: %s\n", emitted);
+ free (emitted);
+ }
+ else if (g_ascii_strcasecmp (ucl_object_key (cur), "emails") == 0) {
+ emitted = ucl_object_emit (cur, UCL_EMIT_JSON_COMPACT);
+ rspamd_fprintf (stdout, "Emails: %s\n", emitted);
+ free (emitted);
+ }
else if (cur->type == UCL_OBJECT) {
/* Parse metric */
rspamc_metric_output (cur);