On Apr 16, 2013 at 01:44 PM -0600, Charles Cazabon wrote:
Not difficult.  The trouble is that it violates the maildir specification;
message filenames have a defined format, and ending with ".eml" breaks that
format, which as you noticed, is used for storing flags (so you don't have to
rewrite a maildir file just to change the state of a message to "read" or
"replied" or "important", etc).

Understood. It's still something I might be interesting in implementing for personal usage. I'm not overly concerned with violating maildir specification.

Besides, how is rewriting the extension any less intensive than rewriting another part of the file name? I grant you that splitting a filename on the last period before reading the flags at the end is one extra step, it shouldn't complicate things too much. Lop of the extension, read the flags for status, add the extension back on when you change the name if you've decided to change the flags.

Surely someone else has already written a data source module for Spotlight
that can read a properly-formatted maildir?  That would seem to be a better
approach than trying to hack it in with filenames that don't adhere to the
maildir spec.

Not that I can find. As I understand it, the spotlight importers (and quicklook modules) rely on UTIs, which are determined by extension. I could of course be wrong...

Reply via email to