diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-11-30 13:40:06 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-11-30 13:40:06 +0000 |
commit | dbe217d798f12d91aa4d9619ff5b3b25c6605bc0 (patch) | |
tree | 216c27cdaa98d440dd9e68b4d5837094ef8bdaf9 /libsieve/actions.c | |
parent | f013492d00003f34a6e5b35b4aec455ca6ff67ad (diff) | |
download | mailutils-dbe217d798f12d91aa4d9619ff5b3b25c6605bc0.tar.gz mailutils-dbe217d798f12d91aa4d9619ff5b3b25c6605bc0.tar.bz2 |
(sieve_action_keep): Remove the delete mark from the message.
Diffstat (limited to 'libsieve/actions.c')
-rw-r--r-- | libsieve/actions.c | 3 |
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; } |