summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libsieve/actions.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libsieve/actions.c b/libsieve/actions.c
index bbe910378..0082009e7 100644
--- a/libsieve/actions.c
+++ b/libsieve/actions.c
@@ -37,6 +37,9 @@ int
sieve_action_keep (sieve_machine_t mach, list_t args, list_t tags)
{
sieve_log_action (mach, "KEEP", NULL);
+ if (sieve_is_dry_run (mach))
+ return 0;
+ sieve_mark_deleted (mach->msg, 0);
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.