<div class="markdown">
<p dir="auto">On 14 Mar 2015, at 23:59, Kee Hinckley wrote:</p>
<blockquote>
<p dir="auto">On 14 Mar 2015, at 12:43, Kee Hinckley wrote:</p>
<blockquote>
<p dir="auto">These items appear to be things that I've deleted or refiled from my phone. But when I bring up mailmate, they are still there, but with a red dot. This seems to be a new behavior.</p>
</blockquote>
</blockquote>
<p dir="auto">It's not.</p>
<blockquote>
<blockquote>
<p dir="auto">Does it have something to do with my server (perhaps, I'm not sure) marking items for delete rather than moving them to trash?</p>
</blockquote>
</blockquote>
<p dir="auto">The server does as its told. The behavior is related to the email clients used.</p>
<blockquote>
<blockquote>
<p dir="auto">How do I fix it?</p>
</blockquote>
</blockquote>
<p dir="auto">I'm not sure what is best, but I can explain what the problem is.</p>
<blockquote>
<p dir="auto">I've verified that they are indeed marked for deletion on the server. So I assume for some reason my phone is marking for delete instead of moving to trash.</p>
</blockquote>
<p dir="auto">That is correct. IMAP was not really designed to be used with a trash mailbox. Instead you were intended to mark emails for deletion (using the <code>\Deleted</code> IMAP keyword) and then explicitly expunge them. Often email clients also offered to do this automatically when closing a mailbox.</p>
<p dir="auto">When moving an email (e.g., to the trash) then what really happens is:</p>
<ul>
<li>The message is copied to the destination mailbox.</li>
<li>The message is marked for deletion in the source mailbox (red dot state in MailMate).</li>
<li>The message is expunged.</li>
</ul>
<p dir="auto">Some email clients mark for deletion and hide the messages from the user and then do the expunge later on. Your problem depends on how your other email clients define “later on”.</p>
<p dir="auto">In MailMate there is no “later on”. Expunging is done immediately after deleting.</p>
<p dir="auto">MailMate also supports the old style though since one can create a tag for the <code>\Deleted</code> keyword and use that to delete messages. Expunging can then be done using the <a href="http://manual.mailmate-app.com/key_binding_selectors#mailbox_actions"><code>expungeDeletedMessages:</code></a> key binding selector. This also requires the following hidden setting to always show deleted messages:</p>
<pre><code>defaults write com.freron.MailMate MmShowDeletedMessages -bool YES
</code></pre>
<p dir="auto">Which leads me to your last comment:</p>
<blockquote>
<p dir="auto">I'm not seeing any way to hide them in MailMate though.</p>
</blockquote>
<p dir="auto">You need to always hide them and this is not currently possible. By default, they are hidden for any mailboxes based on “All Messages” and the universal mailboxes, but they are not hidden for anything based on IMAP mailboxes. You could add a condition to each IMAP mailbox to hide these messages, but that would be a hassle.</p>
<p dir="auto">I'm still considering how to improve/change this, but at least you know how it works now :-)</p>
<p dir="auto">Oh, and you might have noticed that MailMate some times draws the entire line in the messages outline in red. This happens when deleting a message permanently -- it'll be red until it has been deleted on the server (and then it'll disappear completely). You would most often see this in the trash mailbox of an IMAP account.</p>
<p dir="auto">-- <br>
Benny</p>
</div>