<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<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" style="margin:1em 0">On 16 Jan 2017, at 14:48, David Ledger wrote:</p>
<p dir="auto" style="margin:1em 0"></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" style="margin:1em 0">When a message is added to a mailbox, are all the messages in there scanned against the rules or only that message that was transferred?</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto" style="margin:1em 0">Only the added message. Currently there is no option to make rules “persistent”. This would primarily be useful for date-based conditions. Theoretically (implementation-wise), it would be equivalent to putting the conditions of a rule into a smart mailbox and then have rules with actions only.</p>
<p dir="auto" style="margin:1em 0"></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" style="margin:1em 0">Is there ant way to trigger a scan of all messages in a mailbox externally, say using cron?</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto" style="margin:1em 0">I'm afraid not. You can do the GUI actions using <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">perform</code> via <a href="https://manual.mailmate-app.com/custom_key_bindings#applescript" style="color:#3983C4">AppleScript</a>, but that'll then require selecting the mailbox and the messages which would probably be pretty annoying if using MailMate when the cron-event is triggered.</p>
<p dir="auto" style="margin:1em 0">What you need is a way to trigger <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">applyRules:</code> for a specific mailbox without it affecting the GUI. I'll keep that in mind.</p>
<p dir="auto" style="margin:1em 0">-- <br>
Benny</p>
</div>
</div>
</body>
</html>