Commit 57d7c43d 57d7c43d12d3b555867b338856297cafe702c956 by Sergey Poznyakoff

(mail_mbox_commit): Do not store deleted messages into mbox (Thanks Matthew Whitworth).

1 parent eb1d5d74
......@@ -94,9 +94,10 @@ mail_mbox_commit ()
}
message_get_attribute (msg, &attr);
if (!is_user_mbox &&
(attribute_is_userflag (attr, MAIL_ATTRIBUTE_MBOXED)
|| (!hold && attribute_is_read (attr))))
if (!is_user_mbox
&& !attribute_is_deleted (attr)
&& (attribute_is_userflag (attr, MAIL_ATTRIBUTE_MBOXED)
|| (!hold && attribute_is_read (attr))))
{
if (!dest_mbox)
{
......