Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Allow 'Is Not In Mailbox' For Smart Mailboxes System 10.4
Tiger only hintI use Smart Mailboxes to filter various collections of messages (from family, from friends, from hardware vendors, etc.). I wanted a simple way to filter any remaining unsorted messages. I assumed that I could use another Smart Mailbox with multiple 'Message Is Not In Mailbox' filters applied to the already-sorted contents of those first Smart Mailboxes. It seems, however, that whilst one can apply the 'Message Is In Mailbox' filter to Smart Mailboxes, the 'Message Is Not In Mailbox' filter doesn't allow them as an option.

A simple, if fiddly, solution is as follows. Set up a new Smart Mailbox with your required filters in the form of Message Is In Mailbox = SMART MAILBOX. You can specify multiple Smart Mailboxes and also include regular Mailboxes if you like. Now quit Mail.

Open the file SmartMailboxes.plist file in your user's Library/Mail folder with your favourite property list editor. Find the Mailbox you created; the name you specified is in Root -> mailboxes -> # -> MailboxName. Under MailboxCriteria, ignore keys 0 and 1, which are special instances requiring Mail to ignore messages in Trash and in Special mailboxes, and head straight for key 2. Here you will find the Criteria keys of the mailbox; one for each filter you added.

For each Smart Mailbox filter, change the Qualifier from IsEqualTo to IsNotEqualTo. When your are finished, save the plist and restart Mail. Voila, you now have a working Smart Mailbox filtering against message that are NOT in other Smart Mailboxes.

I'm surprised Apple doesn't allow logical != for Smart Mailboxes. I have encountered no problems use this method thus far; however, my Mail database is modest.
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[8,084 views]  

10.4: Allow 'Is Not In Mailbox' For Smart Mailboxes | 5 comments | Create New Account
Click here to return to the '10.4: Allow 'Is Not In Mailbox' For Smart Mailboxes' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Allow 'Is Not In Mailbox' For Smart Mailboxes
Authored by: synner667 on Jun 21, '05 03:36:54PM

Erm..
..That is such a long way round !!


The simple method, that I use is :-

create a smart mailbox, using 'mail is in mailbox' option + select mailbox
once mailbox is selected, change 'mail is in mailbox' to 'mail is not in mailbox'
the selected mailbox is still selected

that's it



[ Reply to This | # ]
10.4: Allow 'Is Not In Mailbox' For Smart Mailboxes
Authored by: nicalderton on Jun 22, '05 07:54:48AM

Don't I feel stupid.

:)

Just goes to show to what lengths I'll go to avoid doing things the easy way.



[ Reply to This | # ]
10.4: Allow 'Is Not In Mailbox' For Smart Mailboxes
Authored by: mayo2ca on Jun 21, '05 04:50:35PM

One possible reason is that when you involve number of smart mailboxes with rather complex logic, Mail can get really slow.

I hacked up few of the rules to do more complex boolean expressions for a smart mailbox filter, but it's incredible how much it can slow down Mail when new emails arrive, etc. I'm not saying this is the problem, but it may very well be related...

m



[ Reply to This | # ]
10.4: Allow 'Is Not In Mailbox' For Smart Mailboxes
Authored by: donotspam on Jun 22, '05 02:00:32AM

It is likely that they disabled this so that one cannot set 2 smart mailboxes as:
A: all messages not in B
B: all messages not in A

What would mail do?



[ Reply to This | # ]
10.4: Allow 'Is Not In Mailbox' For Smart Mailboxes
Authored by: SeanAhern on Aug 07, '05 05:05:24PM

Hey, how about a smart mailbox A that's defined as "all messages that are not in mailbox A"?

>:-)



[ Reply to This | # ]