static gboolean json = FALSE;
static gboolean headers = FALSE;
static gboolean raw = FALSE;
+static gboolean extended_urls = FALSE;
static GOptionEntry entries[] =
{
NULL },
{ "max-requests", 'n', 0, G_OPTION_ARG_INT, &max_requests,
"Maximum count of parallel requests to rspamd", NULL },
+ { "extended-urls", 0, 0, G_OPTION_ARG_NONE, &extended_urls,
+ "Output urls in extended format", NULL },
{ NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
};
rspamd_printf_gstring (numbuf, "%d", flag);
g_hash_table_insert (opts, "Flag", numbuf->str);
}
+ if (extended_urls) {
+ g_hash_table_insert (opts, "URL-Format", "extended");
+ }
}
static void