In bug 224318, message filters were enhanced such that when a custom filter was selected as a criterion, the match selections now include "doesn't contain" and "isn't". These options should be brought over to MailViews and Search.
*** Bug 260777 has been marked as a duplicate of this bug. ***
David, is this hard? I was trying to figure this out, and I think the code that needs to be tweaked is in nsMsgLocalSearch.cpp at nsMsgSearchValidityManager::InitLocalNewsTable() But this stuff is pretty confusing; for instance, I don't know why the word "News" is part of that method name. I didn't even look at the IMAP case.
See also bug 146676.
These criteria also affect manual filters, which use the same validity table. I think they work, it is as simple as enabling them.
Created attachment 391196 [details] [diff] [review] turn on new operators for offline mail
Comment on attachment 391196 [details] [diff] [review] turn on new operators for offline mail I agree, it looks as if it should Just Work.