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.
It's a very informative post
It's a very informative post you shared. Thanks!
It's an interesting site,
It's an interesting site, thanks for posting.
This is awesome! Glad to
This is awesome! Glad to visit this site.
I would love to see more post
I would love to see more post here.
Thank you for keeping us
Thank you for keeping us posted.
It's an interesting post!
It's an interesting post! Great work.
Would love to see more great
Would love to see more great content here.
You have a good content!
You have a good content!
It's a great article!
It's a great article!
Amazing post you shared.
Amazing post you shared.
i'm so happy with the
i'm so happy with the content!
Nice content!
Nice content!
You have a good flakes!
You have a good flakes!
You have a good content!
You have a good content! Thanks
Great stuff! Thank you for
Great stuff! Thank you for sharing.
I found this post very
I found this post very helpful.
It's worth the visit to this
It's worth the visit to this site.
Thanks for the updated post,
Thanks for the updated post, I appreciate it very much.
I would love to see more
I would love to see more articles like this in the future.
It's a great article so far.
It's a great article so far. Thanks!
The content covers a wide
The content covers a wide range of topics, catering to various interests and needs.
this is a great perspective!
this is a great perspective!
Great post, interesting
Great post, interesting points raised. Thanks for sharing.
Looking for top Golden
Looking for top Golden Triangle tour packages?
Your content is good.
Your content is good.
Awesome, thanks for sharing
Awesome, thanks for sharing where to get the bundle/
Thanks for sharing, nice
Thanks for sharing, nice content.
Your post is generally
Your post is generally interesting, new happy.
Thanks for sharing such
Thanks for sharing such useful information.
https://www.indusvacations.com/lucknow-ayodhya-varanasi/
I found this website on
I found this website on accident and I'm suddenly curious about its contents especially on this post.
Where did you find this
Where did you find this website, asking for a friend. http://www.blitzmarketing.org
In Nepal's Mustang region is
In Nepal's Mustang region is the highly respected sacred shrine of Muktinath. Both Hindus and Buddhists regard it as sacred, and thousands of pilgrims visit it every year.
hi!,I love your writing so
hi!,I love your writing so much! percentage we be in contact extra
approximately your post on AOL? I need a specialist on this space to unravel
my problem. Maybe that's you! Taking a look forward to look you.
thanks for sharing
thanks for sharing
All Rules Mail Bundle is an
All Rules Mail Bundle is an add-on for Apple's Mail app that can help users manage complex email rules more efficiently. It offers a graphical interface and batch-processing features, which can save time and effort for users who need to apply the same rules to multiple emails or filter emails based on various criteria.
thanks for sharing
thanks for sharing
Keep up the great work
Keep up the great work
Is this code still working
Is this code still working after all these years? I mean, there's been lots of iterations but it looks like a lot of people are still commenting stuff.
Traveling is not just
Traveling is not just sightseeing, it shows us the real world, teaches many things, it changes our way of thinking. Travel brings out the best version of ourselves. So pack your thing, and start traveling.
Visit:
https://www.visitskailash.com/kailash-mansarovar-yatra-packages.html
https://www.visitskailash.com/tibet-nepal-tour-packages.html
https://www.visitskailash.com/kailash-in-india/8-days-adi-kailash-om-par...
"Uniform", this word is a
"Uniform", this word is a symbol of discipline and professionalism. People feel empowered and confident wearing uniforms and performing as a team. Uniforms play a vital role in the performance and presentation of any team.
Visit:
https://www.sonasignature.com/school-uniform/
https://www.sonasignature.com/corporate-uniform/
https://www.sonasignature.com/sports-uniform/
https://www.sonasignature.com/housekeeping-uniform/
Keep up the great work
Keep up the great work
Thanks, I really worked hard
Thanks, I really worked hard at this code.
Keep up the great work
Keep up the great work
Keep up the great work
Keep up the great work
Keep up the great work
Keep up the great work
Keep up the great work
Keep up the great work
Nice site. Keep up the great
Nice site. Keep up the great work
Nice site. Keep up the great
Nice site. Keep up the great work
Nice site. Keep up the great
Nice site. Keep up the great work
Yeap, it's a nice site. But I
Yeap, it's a nice site. But I wouldn't call it perfect. Could still use a little bit more polishing.