On Thu, May 29, 2014 at 08:26:38AM +0200, Suvayu Ali wrote:
On Wed, May 28, 2014 at 09:40:33PM -0300, Douglas Campos wrote:
> Howdy! Happy mutt-kz user here.
>
> I'm wondering whether any of you thought on going further and using
> notmuch/xapian as the sole store for mail. Why am I asking this?
>
> Mutt does a bazillion file operations which is insanely slow under OSX;
> I'm wondering whether could we plug libetpan and feed mail directly to
> the database, sync the changes back. This would mean we would have all
> the mutt-kz awesomeness without having to muck with mbsync/offlineimap
> and having to use double storage space (Maildir + notmuch db).
I'm not sure that is possible (notmuch db, without a Maildir). As far
as my understanding goes, you can inject a message in the db just fine.
However retrieving/display is done by actually getting the file from the
mailstore (Maildir). To get your proposal to work, you would need to
work out a way to "reconstruct" the whole message from the database
only. In theory, this should be possible, but I have no idea how one
would proceed.
Yep, a lot of things in mutt depends on on-disk stuff.
On top of this, not having a Maildir would mean cli tools will get
confused; although this might be okay in principle, but library only
notmuch system with broken cli tools would be pretty non-standard.
For example for me is tool independent storage (maildir) really nice
thing as I can use the files (emails) directly from many tools (e.g.
git-am).
Karel
--
Karel Zak <kzak(a)redhat.com>
http://karelzak.blogspot.com