Skip to content
Snippets Groups Projects
Commit 48344a51 authored by Stephan Bosch's avatar Stephan Bosch
Browse files

plugins: doveadm-sieve: Reformat doveadm-sieve-cmd-delete.c

parent c9e0f51f
No related branches found
No related tags found
No related merge requests found
...@@ -21,8 +21,8 @@ struct doveadm_sieve_delete_cmd_context { ...@@ -21,8 +21,8 @@ struct doveadm_sieve_delete_cmd_context {
static int cmd_sieve_delete_run(struct doveadm_sieve_cmd_context *_ctx) static int cmd_sieve_delete_run(struct doveadm_sieve_cmd_context *_ctx)
{ {
struct doveadm_sieve_delete_cmd_context *ctx = struct doveadm_sieve_delete_cmd_context *ctx =
container_of(_ctx, struct doveadm_sieve_delete_cmd_context, ctx); container_of(_ctx, struct doveadm_sieve_delete_cmd_context,
ctx);
struct sieve_storage *storage = _ctx->storage; struct sieve_storage *storage = _ctx->storage;
const ARRAY_TYPE(const_string) *scriptnames = &ctx->scriptnames; const ARRAY_TYPE(const_string) *scriptnames = &ctx->scriptnames;
const char *scriptname; const char *scriptname;
...@@ -60,11 +60,13 @@ static void cmd_sieve_delete_init(struct doveadm_mail_cmd_context *_ctx) ...@@ -60,11 +60,13 @@ static void cmd_sieve_delete_init(struct doveadm_mail_cmd_context *_ctx)
{ {
struct doveadm_cmd_context *cctx = _ctx->cctx; struct doveadm_cmd_context *cctx = _ctx->cctx;
struct doveadm_sieve_delete_cmd_context *ctx = struct doveadm_sieve_delete_cmd_context *ctx =
container_of(_ctx, struct doveadm_sieve_delete_cmd_context, ctx.ctx); container_of(_ctx, struct doveadm_sieve_delete_cmd_context,
ctx.ctx);
ctx->ignore_active = doveadm_cmd_param_flag(cctx, "ignore-active"); ctx->ignore_active = doveadm_cmd_param_flag(cctx, "ignore-active");
if (!doveadm_cmd_param_array_append(cctx, "scriptname", &ctx->scriptnames)) if (!doveadm_cmd_param_array_append(cctx, "scriptname",
&ctx->scriptnames))
doveadm_mail_help_name("sieve delete"); doveadm_mail_help_name("sieve delete");
doveadm_sieve_cmd_scriptnames_check(&ctx->scriptnames); doveadm_sieve_cmd_scriptnames_check(&ctx->scriptnames);
......
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.