<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body><div style="font-family: sans-serif;"><div class="markdown" style="white-space: normal;">
<p dir="auto">This is great advice. Thanks Shoshanna!</p>
<p dir="auto">I also found the official description in the Manual on the Hidden Preferences page here:</p>
<p dir="auto">Custom message verifications<br>
<a href="https://manual.mailmate-app.com/hidden_preferences#custom-message-verifications" style="color: #3983C4;">https://manual.mailmate-app.com/hidden_preferences#custom-message-verifications</a></p>
<p dir="auto">Does anyone know if this plist file supports compound conditions? I tried entering a few examples using the same format from the Mailboxes.plist file. The simple conditions work fine, but the compound ones are ignored. If not, is there another way to do an ALL or ANY condition? For example, the verification matches if you are sending to a random Gmail address, but not your own.</p>
<p dir="auto">Thanks,<br>
Alan</p>
<p dir="auto">On 10/8/2025 4:54 PM, Shoshanna Green wrote:</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;">
<p dir="auto">It's possible to create user-defined checks on an outgoing message before it's sent, just like the attachment check; I have a number of checks that, e.g., warn me if I'm about to send a message from my personal email address to a work contact, and so on. The relevant file defining those checks is called messageVerifications.plist and it lives in ~/Library/Application Support/MailMate/Resources. For instance, here's a bit of mine that ensures auto-complete doesn't have me send mail to a no-longer-in-service address:</p>
<p dir="auto">{<br>
title = "She changed her email address";<br>
details = "so use <a href="mailto:NEWADDRESS@gmail.com" style="color: #777777;">NEWADDRESS@gmail.com</a> instead.";<br>
conditions = "#recipient ~ '<a href="mailto:OLDADDRESS@hotmail.com" style="color: #777777;">OLDADDRESS@hotmail.com</a>'";<br>
},</p>
<p dir="auto">Wrap that in</p>
<pre style="margin-left: 15px; margin-right: 15px; padding: 5px; background-color: #F7F7F7; border-radius: 5px 5px 5px 5px; overflow-x: auto; max-width: 90vw;"><code style="margin: 0 0; border-radius: 3px; background-color: #F7F7F7; padding: 0px;">{
verification = (
{CHUNKS OF CODE LIKE THE ABOVE GO HERE},
);
}
</code></pre>
<p dir="auto">being careful about where you use parens ( ) and where you use curly brackets { }, name and locate the file correctly, and you might be able to make it work? I forget where I found guidelines for formatting the conditions, but they're somewhere...</p>
<p dir="auto">Shoshanna Green (she/her)<br>
<a href="mailto:shoshannag@gmail.com" style="color: #777777;">shoshannag@gmail.com</a></p>
</blockquote>
</div>
</div>
</body>
</html>