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.

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.

Do you know that Apple Watch

Do you know that Apple Watch 2 will have FaceTime? AMAZING! Just foê this features i buy smart watches from Apple.

Whenever it is in any way

Whenever it is in any way possible, every boy and girl should choose as his life work some occupation which he should like to do anyhow, even if he did not need the money. http://www.toolbox.com.ph/

Everything is become

Everything is become automated aand simple with this hack
tool.

Boldness in itself is genius.

Boldness in itself is genius.

Focus on the workplace

Focus on the workplace conduct that is the problem.
A borrower never owes more than the value of their
home. If you are one of these people, then you may want to look into an FHA Home
Refinance. The funds allocated for these purchases
are almost gone. If you are financially strong than you
can pay some extra amount in payment.

Appreciate your insight.

Appreciate your insight. Thanks.

Appreciate your insight.

Appreciate your insight. Thanks.

Useful information! Thanks

Useful information! Thanks for sharing.

Appreciate your insight.

Appreciate your insight. Thanks.

The very best deer antler

The very best deer antler velvet extract has been procured by your lab and
imported it.

2004 & Barling. IGF1 Serious

2004 & Barling. IGF1 Serious Growth Matrix Deer Spray can be a highly pure fluid deer velvet extract.

Rings can be stored in ring

Rings can be stored in ring rolls to be kept from rolling about and sustaining damage to themselves.
But if your silverware lacks great design patterns, check out a selection of
newer or antique silver pattern pieces at garage sales and thrift shops.
Usually wedding rings are also made of gold because it
is long lasting and remain unaffected with
the passage of time. In order to avoid this scenario, gold is added to create
a flat surface, making it attached to the tooth conveniently without drilling.
It is our foremost concern to deliver the products which have guarantee of color.

Hello my friend! I want to

Hello my friend! I want to say that this post is amazing, nice written and include almost all important infos.
I'd like to peer more posts like this .

Appreciate your insight.

Appreciate your insight. Thanks.

Useful information! Thanks

Useful information! Thanks for sharing.

Appreciate your insight.

Appreciate your insight. Thanks.

Hi Michael, Bit off topic but

Hi Michael,
Bit off topic but thanks for the firefox addon. The new version works great. All other ones break now because there they don't have a results per page value which yours does.

Cheers
Tim
http://www.biostim.com.au

Useful information! Thanks

Useful information! Thanks for sharing.

Useful information! Thanks

Useful information! Thanks for sharing.

What is meant by "borrowers

What is meant by "borrowers who misrepresented their incomes" is what mortgage lenders call "stated" income loans; these are loans
that do not require proof of income. Even if you're not a homeowner, don't neglect the money-saving possibilities
that itemizing might provide. Also be sure to include
any and all money you spend on entertainment. Distressed homes are worth the value '
Obviously, homes that have been repossessed by banks are considered of good quality since foreclosed properties are well
maintained. and these are not going to happen for some time
to come.

you

you

Appreciate your insight.

Appreciate your insight. Thanks.

That’s where this bundle

That’s where this bundle comes into play.unfortunately there is no way to activate certain rules by pressing a keyboard shortcut.

Well, there are quite a

Well, there are quite a number of reasons why home owners resort
to refinancing. Pico has completed over 1,000 automobile dealership transactions, whose combined values exceed One Billion Dollars.

You can apply for any amount beginning from £100 to £1500.

You will want to make sure that you look for the best
terms and interest rates. My home loan will undoubtedly be eighty% of the house professional, can I keep clear of paying PMI considering i'm funding singular eighty%.

there is no way to activate

there is no way to activate certain rules by pressing a keyboard shortcut. That’s where this bundle comes into play. rule system is perfectly suited for that task, unfortunately

Also, as pirates generally

Also, as pirates generally board during the
night, when sudden expenses of the crew is taking rest, it is definitely difficult to keep a close watch
on each of the areas of the ship from the small number of crew members who are on duty.

Developers experienced to simply watch their effort go to waste as people made
illegal copies with the games and sold it with unauthorized keys that were pretty an easy task to replicate by anyone
who had a practical system and just the right amount of technical understanding.
I really struck by the use and advice on his or her use
of a hard disk management.