@thor i have thought some time ago about building something like that with imap, at least you'd have a fallback client nearly everywhere, and sync is a fixed problem for it. alas, imap and i have nearly no interest in building guis :)
sqlite with fts extension would also be nice, but then you have to build a client/server sync thingie.