Skip to content
Snippets Groups Projects
Commit 0d74af39 authored by Aki Tuomi's avatar Aki Tuomi
Browse files

managesieve: Add script_size to PUT/CHECK/GET commands

parent 06ecc1a7
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,8 @@ static bool cmd_getscript_finish(struct cmd_getscript_context *ctx)
client->get_bytes += ctx->script_size;
struct event_passthrough *e =
client_command_create_finish_event(cmd);
client_command_create_finish_event(cmd)->
add_int("script_size", ctx->script_size);
e_debug(e->event(), "Retrieved script `%s'", ctx->scriptname);
client_send_line(client, "");
......
......@@ -257,6 +257,7 @@ cmd_putscript_finish_script(struct cmd_putscript_context *ctx,
struct event_passthrough *e =
client_command_create_finish_event(cmd)->
add_int("script_size", ctx->script_size)->
add_int("compile_warnings",
sieve_get_warnings(ehandler));
if (ctx->scriptname != NULL) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.