Commit 7089ffd4 7089ffd463a43f0821273d47d601d3c3a9034c4d by Sergey Poznyakoff

(moderator_action): set deleted flag manually, do not use undeclared sieve_mark_deleted.

1 parent 362f3f52
......@@ -306,7 +306,12 @@ moderator_action (mu_sieve_machine_t mach, mu_list_t args, mu_list_t tags)
else
{
if (!mu_sieve_tag_lookup (tags, "keep", NULL))
sieve_mark_deleted (msg, 1);
{
mu_attribute_t attr = 0;
if (mu_message_get_attribute (msg, &attr) == 0)
mu_attribute_set_deleted (attr);
}
else
discard = 0;
}
......