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 () ...@@ -94,9 +94,10 @@ mail_mbox_commit ()
94 } 94 }
95 message_get_attribute (msg, &attr); 95 message_get_attribute (msg, &attr);
96 96
97 if (!is_user_mbox && 97 if (!is_user_mbox
98 (attribute_is_userflag (attr, MAIL_ATTRIBUTE_MBOXED) 98 && !attribute_is_deleted (attr)
99 || (!hold && attribute_is_read (attr)))) 99 && (attribute_is_userflag (attr, MAIL_ATTRIBUTE_MBOXED)
100 || (!hold && attribute_is_read (attr))))
100 { 101 {
101 if (!dest_mbox) 102 if (!dest_mbox)
102 { 103 {
......