Originally Posted by TETENAL
If you store 100.000 mails in one file Spotlight would still find the contents in each and every mail. But it would only know that the mail is in this large mailbox file. Not too helpful. If each mail is one file Spotlight finds the file and therefore each individual mail. It can show title and excerpt and it can directly open the particular mail.
So the "importer" can't do something smarter to tell Spotlight that a particular word comes from a particular email (instead of just pointing to a file)?
Or is it because there is no plugin architecture for Spotlight to present search results for non-file objects?
For example, with a database-based Mail.app, the importer can say word "Apple" comes from email 12345 (and possibly others). When a user searches for "Apple", Spotlight would know email 12345 matches.
Since email 12345 is an "email object" (not a file object), Spotlight then uses another plugin to present this result in its window. When a user double clicks on this object, the right email will show up in Mail.app.