Found just another typo.
mail-act-on V0.3.kmmacros (392.8 KB)
Found just another typo.
mail-act-on V0.3.kmmacros (392.8 KB)
While I totally understand your interest in KM to replace your Act-On plugin, I'm curious as you why you wouldn't just use the built-in Mail Rules to automatically move your messages to the desired folder? You can create rules (press cmd+comma, then click the Rules tab) that move messages from a specific email address (or many other options) to the desired folder. It is a great way to keep your Mail program organized.
I cannot speak for the original post but for me the reason is that these filter work while receiving mails and therefore store the mails in a mailbox before I have seen the content. Mail-act-on can work at the moment you request that an email should be moved, i.e. after reading the mail.
I understand this. However, when a Rule moves the message to the appropriate folder, it still keeps the Unread badge on the folder to let you know the number of unread messages there. Doing it the way you suggest makes YOU the filter. I prefer having the automation where all I have to do is look to my folders for what is new and unread.
You are correct. Here is a new version.
mail-act-on V0.4.kmmacros (392.7 KB)
You are correct that this works. However this requires a relative small number of mailboxes. I believe i have up to 2,000 mailboxes with an hierarchy. Using the batches approach doesn't work for me as such.
I have over 500 mailboxes and this works perfectly for me. I don't believe there is a limit for how many rules or mailboxes you can apply rules to. You can also have sub-folders, allowing you to condense your folders into simple major categories then have sub-folders that identify each sub-category inside it. You can even have sub-sub-folders (into infinity). For example, I have one folder labeled BANKING and inside it are several sub-folders labeled for individual banks and financial institutions. Similarly, I have a general category folder for FRIENDS and inside it are individual sub-folders for specific friends. Also for FAMILY. The created rule is set to move the specific message sender to the appropriate sub-folder. Whenever any mail comes in from any of them, I see the badge for the number of unread messages on the general folder and when I open it, I see the badge on the individual folder. For me, this makes more sense than trying to script KM into doing what can be done natively on the Mac. I also like that I can use Rules to add color to specific messages or even have it Speak the name of a specific sender when a message comes through. As a built-in function, Mail Rules are really robust and can be as sophisticated as you want to make them.
I used Mail Act-On (and now Keyboard Maestro) because there are often individual messages from infrequent correspondents that I want to send to a particular folder. It's not realistic to create an "inbox rule" in Mail for these random msgs, since Rules are built around 'from' addresses that I might not even know before the message arrives,
So I had just a handful of Act-On rules that I could invoke when one of those 'random' messages showed up in my inbox.
Does that answer your question?
--PS
Yeah. What he said.
--PS
Rules can be built from 30 different possible options, not just 'from' addresses, as well as 5 different filters for each of these, such as 'contains', 'does not contain', 'begins with', 'ends with', and 'is equal to' . These open the door for many creative possibilities. If there is an 'infrequent correspondent' that sends you an email, you can simply add them to the appropriate rule using the 'is equal to' filter and all mail from them from that point forward will automatically be moved. You can even have the rule be applied to just the '@example.com' portion of an address using the 'contains' filter and then any sender using that address extension will have that rule applied to it.
A better idea would be to have KM assign that email to a specific rule and then apply the rule. However, I'm not sure that can be done, although I know there are clever people here who might be able to make it happen.
It can't, and that's the problem. You used to be able to apply individual rules to an email with AppleScript, but for a long time now the only option has been "run this email through all the rules".
Rules are a powerful mechanism for processing email -- but they aren't so great at ad hoc processing, nor can they match the complexity you can achieve with KM and/or AppleScript.