summaryrefslogtreecommitdiff
path: root/libsieve
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-11-30 13:40:06 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-11-30 13:40:06 +0000
commitdbe217d798f12d91aa4d9619ff5b3b25c6605bc0 (patch)
tree216c27cdaa98d440dd9e68b4d5837094ef8bdaf9 /libsieve
parentf013492d00003f34a6e5b35b4aec455ca6ff67ad (diff)
downloadmailutils-dbe217d798f12d91aa4d9619ff5b3b25c6605bc0.tar.gz
mailutils-dbe217d798f12d91aa4d9619ff5b3b25c6605bc0.tar.bz2
(sieve_action_keep): Remove the delete mark from the message.
Diffstat (limited to 'libsieve')
-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.