Created: 2025-01-27
If you use a Mac and manage a lot of mails, MailMate is a proper killer app.
After sending mails to wrong recipients due to autocompletion errors – newer recipients change the order of autocomplete propositions – I decided to research if you could prevent said accidents.
MailMate's numerous preferences come with a default condition to check against missing attachments – you can configure a search pattern in Settings/Composer
against mentions in the message text:
which looks like this:
One of MailMates many –hidden– preferences is checking against custom conditions much like the attachment prompt.
The example code is missing examples for conditions though.
Turns out it's the same checks being used in smart mailboxes. So you
~/Library/Application Support/MailMate/Mailboxes.plist
~/Library/Application Support/MailMate/Resouces/MessageVerifications.plist
like this:{
verifications = (
{
title = "Sure to send to Jane Doe?";
details = "`jane.doe@example.com` appeared in To";
conditions = "to.address ~ 'jane.doe@example.com'";
},
{
title = "Sure to send to Jane Doe?";
details = "`jane.doe@example.com` appeared in CC";
conditions = "cc.address ~ 'jane.doe@example.com'";
}
);
}
Now
and voilá:
You may now check against everything you can come up with: company domains, weekdays, office hours.