All-Rules Mail Bundle: The shortcut to your Mail.app rules
Have you ever wanted to automate some message sorting tasks in Apple’s Mail application after you have read a message? I, for example, use one archive folder per account and move all messages into that folder after I’ve read them. The application’s rule system is perfectly suited for that task, unfortunately there is no way to activate certain rules by pressing a keyboard shortcut. That’s where this bundle comes into play.
The All-Rules Mail Bundle acts as a plugin for Apple’s Mail application and serves just one specific purpose. It provides an additional menu item located under “Message -> Apply All Rules” which applies all active rules to the currently selected messages while ignoring any present “Stop evaluating rules” action.
Where to get the bundle
The source of the bundle is available at GitHub as a standard Xcode project. Feel free to adapt it to your needs if necessary. I will also provide a precompiled binary for those of you who just want to use it out of the box.
- Source: https://github.com/mstarzinger/all-rules
- Binary: https://github.com/downloads/mstarzinger/all-rules/AllRules-0.1.zip
Note that I’ve developed and tested the thing on my only Mac machine, which clearly is an inadequate test coverage. As always I would be happy about any response. So far the bundle is known to run in the following environment, which is the most recent one at the time of writing.
- Mac OS X Snow Leopard 10.6.6
- Mail Application 4.4
- Message Framework 4.4
How it is implemented
First of all, let me emphasis that this is the first time I actually did some Objective-C coding. But I really liked the feel of it. I was really surprised about the power of the Objective-C runtime. You can do lots of nasty stuff at runtime like changing class hierarchies, adding methods to classes, changing method implementations and so on.
I used one technique known as method swizzling in the bundle, which lets you switch the existing implementation of a method with your own replacement at runtime. This enabled me to override the original shouldStopEvaluatingRules
implementation of the MessageRule
class inside the Message framework.
Unfortunately most of the APIs of the Mail application and the Message framework are private, so I expect my bundle to break sometime in the future. But the API can be easily reverse engineered with the class-dump utility which generates header files out of Objective-C binaries.
To prevent bundles from silently breaking, each bundle includes a list of the exact versions of Message frameworks and Mail applications it is compatible with. I found an article that explains how to fix unsupported plugins after upgrading Mail.app without recompiling them. So if you have different versions running on your machine that are compatible as well, let me know about them.
And last but not least I want to mention one article which helped me a lot in figuring out all those tiny details and really did it’s job in demystifying Mail.app plugins on Leopard for me.
Related bundles
The same (and more) could be done with Indev’s Mail Act-On bundle, unfortunately that bundle is sold under a commercial license. With my bundle I cloned the essential feature which was indispensable for my personal use.
This blog post discusses the
This blog post discusses the "All Rules" mail bundle shortcut for Mail.app, detailing how it can simplify managing email rules by applying them to all incoming messages at once. https://www.portsaintlucieconcretecontractor.com/stamped-concrete.html
Thanks for sharing this
Thanks for sharing this www.taipeimedia.com
Wanna decorate your home but
Wanna decorate your home but don't have good ideas? Don't worry nowadays artificial items like artificial grass, flowers, plants are used a lot. So must try these.
Visit: https://www.elen.in/product-category/artificial-flowers/
The link leads to a comment
The link leads to a comment section on Antforge, where users discuss or reply to a post related to a specific topic. It appears to be a continuation of a previous discussion or feedback. https://www.goodyearazconcretecontractor.com/stamped-concrete.html
Nowadays home decor has
Nowadays home decor has become a favorite and best career option. Home decor is very important for everyone. Everyone wants to decorate their home, office, or where they live. Nowadays presentation is very important and for presentation, decoration is very important. There are many ways to decorate homes and offices. Artificial items like artificial grass, artificial vertical gardens, plants, bonsai, and flowers are one of the best options for home decor.
Visit: https://www.elen.in/
Your post is very cool. Thank
Your post is very cool. Thank you for sharing!
the mail bundle is
the mail bundle is significant. We somehow understand why this is so much important than anything else.
This was great experience.
This was great experience. Thank you for sharing this information.
Peace and harmony are very
Peace and harmony are very important in our life. That's why you need to go on vacation.
Visit:
https://www.visitskailash.com/muktinath-darsan-package.html
https://www.visitskailash.com/kathmandu-pokhara-tour-package.html
A top uniform manufacturer
A top uniform manufacturer specializes in the production and sale of uniforms, which are standardized sets of clothing worn by members of an organization or group. There are various types of uniform manufacturers are as corporate uniform manufacturers, hospital uniform manufacturers,etc.
Visit:
https://www.sonasignature.com/hotel-uniform/
https://www.sonasignature.com/hospital-uniform/
https://www.sonasignature.com/industrial-uniform/
Thanks for sharing this
Thanks for sharing this amazing blog.
I am not much into reading,
I am not much into reading, but somehow I got to read nice information on your site. Simple to understand and helpful. We will look forward for your future updates.Thanks!
Such an informative blog.
Such an informative blog.
Thank you for always sharing
Thank you for always sharing here an informative post.
The blog post discusses a
The blog post discusses a Mail.app bundle called "All Rules," which helps users manage and streamline their email rules more efficiently. https://www.lawrencevilleconcrete.com/concrete-patios.html
For Latest Travel Updates,
For Latest Travel Updates, Follow https://www.travelturtle.world/international/
It's nice seeing this great
It's nice seeing this great site again. Nice work!
Why are you asking, did it
Why are you asking, did it disappear for a while?
It disappeared for a bit, but
It disappeared for a bit, but it's only a minor server hitch. Hardly worth mentioning. Maybe 2, 3 days downtime.
Happy to visit this one.
Happy to visit this one. Thanks for the information.
Yeah! That's true, need more
Yeah! That's true, need more of it. Check out https://www.clearwaterflconcretecontractor.com/
Same here. Glad you liked
Same here. Glad you liked this little corner of the Internet.
Very helpful; many thanks.
Very helpful; many thanks.
Looking for calmness and
Looking for calmness and peace?
Likewise. Anyway, if you find
Likewise. Anyway, if you find yourself constantly managing your Mail.app inbox, the All-Rules Mail Bundle is the shortcut you need to stay on top of things. This collection of pre-made rules can be imported into Mail.app, making it easy to get your inbox under control.
Recommended Service: https://www.tileandgroutcleaningprosavondale.com
Same here and I learn
Same here and I learn something valuable today. Anyway, for the best pool service Chandler based cleaning, get it from https://www.poolcleanerchandleraz.com/
Lipnios etiketės jūsų
Lipnios etiketės jūsų sukurtiems produktams, kurios pritrauks visus klientus. Užsisakykite iš iPRINT <a href="https://iprint.lt/lipnios-etiketes.html">Lipnios etiketes</a>
Absolutely composed subject
Absolutely composed subject matter, thanks for this release.
What language is that? I
What language is that? I don't understand it but I hope you shared something informative. Anyway, get the best carpet cleaning in Phoenix from this company: https://www.tileandgroutcleaningprosphoenix.com
Prima! Sehr gut!
Prima! Sehr gut!
I appreciate it very much.
I appreciate it very much.
No to kup!
No to kup!
Hello
Hello
Nieźle!
Nieźle!
Super!
Super!
What language are you guys
What language are you guys using?
Golden Grande is a new
Golden Grande is a new commercial project that provides a wide range of commercial options, including office space and retail shops, gaming areas, multiplexes, and food courts, to suit every budget.
Visit:
https://www.goldengrandegreaternoida.com/
https://www.goldengrandegreaternoida.com/golden-grande-price-list
https://www.goldengrandegreaternoida.com/golden-grande-site-plan
https://www.goldengrandegreaternoida.com/golden-grande-location
Be lentynu svetaine atrodo
Be lentynu svetaine atrodo neuzbaigta. Noredami kokybiskos svetaines turite isigyti lentynas
Great content! l
Great content! l https://www.gahannadumpsterrentals.com/
I don't know. I think it
I don't know. I think it needs a little bit of improvement
http://www.coachellavalleyconstruction.com
Thanks for sharing this great
Thanks for sharing this great article, glad to check this site.
I was very encouraged to find
I was very encouraged to find this site. The reason being that this is such an informative post. Thanks for sharing!
Nice to know that the author
Nice to know that the author even indicated how this should be implemented
This is really informative,
This is really informative, Thanks a lot!
-Grant
Really agree with you there.
Really agree with you there. Wait, what are you guys talking about again? This comments section is a mess right now.
https://www.desertsunconcrete.com/
I couldn't agree more.
I couldn't agree more. Anyway, if you're looking for someone to repair your sprinklers in Phoenix, you must try this: https://www.sprinklerinstallphoenix.com/sprinkler-repair.html
I found that recent updates
I found that recent updates prevent this mail app from displaying properly. When can we expect an update?
So great! Thanks for the
So great! Thanks for the update.
This was a great update. It
This was a great update. It makes life easier. Thank you for sharing.
https://www.electricianreddingca.com/
Thanks for sharing this
Thanks for sharing this information. It was really a great app.
https://www.carpetcleaning-lancaster.com/