On Tuesday, April 16 at 12:25 PM, quoth Tim Gray:
I run mutt on OS X. As I'm sure many of you know, OS X has a system wide content indexing and search system called Spotlight. Spotlight already indexes and searches emails stored individually as files (similar to maildir) and OS X also has a preview function for said files. All they require is to have the extension '.eml'.
So, one way of doing it is to use the OS X filesystem's metadata to identify the files properly, rather than using a filename modification. Based on the instructions I found here: http://listserver.themacintoshguy.com/pipermail/x-unix/2006-June/002674.html
You can do the following: find /path/to/maildir -type f -exec /Developer/Tools/SetFile -t TEXT {} \; Then, tell spotlight to update its index of those files: mdimport /path/to/maildirNow, that will identify those files as text files, which Spotlight knows how to understand pretty readily. BUT, obviously, that's not quite the same as getting Spotlight to understand them as MAIL files. I suspect you can do something similar to identify them as mail files, but I don't have a Mac in front of me to play around with it.
That done, you now have the problem that you have to re-execute that set of commands periodically to keep the Spotlight database updated. You can do that with launchd (Apple's tool that combines initd and cron), but that seems sub-optimal. It would be better if you could patch mutt to make whatever call is necessary to set the appropriate metadata... but I don't know what that call would be (no Mac handy). Maybe someone with a Mac can use that starting point to figure it out? Or maybe that's enough for you to muddle through?
~Kyle --I would be delighted to offer any advice I can on understanding women. When I have some I'll let you know.
-- Jean Luc Picard
pgpdQKg5XAJGV.pgp
Description: PGP signature