<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 9 Nov 2021, at 1:47, Fabian Blechschmidt wrote:</p>
</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">Good morning!<br>
<br>
I have the problem, that a message is moved to Trash. Every time I move it back, it is moved into Trash again.<br>
<br>
I can’t find a rule that explains that (neither on Mailmate nor on on server) and neither on the message, nor on the source or the activity viewer I can find any type of log, why this happens.<br>
<br>
Is there anything which helps me to debug this? I searched through the mailing list, because I was sure I read something about it, but couldn’t find it.</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">Unfortunately, MailMate doesn't seem to log rule evaluations or actions, which would be terrifically helpful.</p>
<p dir="auto">One thing I've resorted to is opening the file 'Library/Application Support/MailMate/Mailboxes.plist' in a text editor and looking for lines that have "trash", for example:</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7"> actions = (
{ mailbox = "trash";
type = "moveMessage";
},
</code></pre>
<p dir="auto">This indicates a rule that moves a message to the trash. A line or so down there will be a line that contains</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7"> description = "foo";
</code></pre>
<p dir="auto">Whatever is in quotes ("foo" in the example above) is the name of the rule. Look for a line with "filter =", this contains the actual rules of the filter (but you can more easily understand it by looking in the MailMate app at the "Rules" for the mailbox, and finding the rule with the same description. To find the mailbox that holds this rule, look for the closing ")" of the "rules = (". It might be after a line such as:</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7"> );
</code></pre>
<p dir="auto">That is, three tab characters, a close parenthesis and a semicolon. Following that should be the mailbox UUID (unique identifier), which is of the form</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7"> uuid = "imap://myuser@mymailserver/Inbox";
</code></pre>
<p dir="auto">The part at the end is the name of the mailbox ("Inbox" in the example above). The part after "imap://" is the account info for the IMAP mail server.</p>
<p dir="auto">--Randall</p>
</div>
</div>
</body>
</html>