(moderator_action): set deleted flag manually, do not use undeclared sieve_mark_deleted.
Showing
1 changed file
with
6 additions
and
1 deletions
... | @@ -306,7 +306,12 @@ moderator_action (mu_sieve_machine_t mach, mu_list_t args, mu_list_t tags) | ... | @@ -306,7 +306,12 @@ moderator_action (mu_sieve_machine_t mach, mu_list_t args, mu_list_t tags) |
306 | else | 306 | else |
307 | { | 307 | { |
308 | if (!mu_sieve_tag_lookup (tags, "keep", NULL)) | 308 | if (!mu_sieve_tag_lookup (tags, "keep", NULL)) |
309 | sieve_mark_deleted (msg, 1); | 309 | { |
310 | mu_attribute_t attr = 0; | ||
311 | |||
312 | if (mu_message_get_attribute (msg, &attr) == 0) | ||
313 | mu_attribute_set_deleted (attr); | ||
314 | } | ||
310 | else | 315 | else |
311 | discard = 0; | 316 | discard = 0; |
312 | } | 317 | } | ... | ... |
-
Please register or sign in to post a comment