Yeah makes sense that I could just use maildir: search filter instead
of doing this.
Because of this setup I submitted a related pull request just now:
https://github.com/djcb/mu/pull/1031
I also thought I'd send a note / question about this because I've
found another use-case for this that's quite neat.
I now have a large maildir/index that I almost never look at, but want
to keep around for reference. I by splitting out the mu index I can
keep that data on a slower spinning disk I may not even have mounted
all the time instead of on my local SSD.
I was pondering taking this a step further and even just mounting the
maildir & xapian database as read-only, I got as far as this
monkeypatch:
diff --git a/lib/mu-runtime.c b/lib/mu-runtime.c
index a8e78dd4..3da7e79a 100644
--- a/lib/mu-runtime.c
+++ b/lib/mu-runtime.c
@@ -94,6 +94,6 @@ mu_runtime_init (const char* muhome_arg, const char *name)
if (!mu_util_create_dir_maybe (muhome, 0700, TRUE)) {
- g_printerr ("mu: invalid mu homedir specified;"
- " use --muhome=<dir>\n");
- runtime_free ();
- return FALSE;
+ /*g_printerr ("mu: invalid mu homedir specified;"
+ " use --muhome=<dir>\n");*/
+/* runtime_free ();
+ return FALSE;*/
}
diff --git a/lib/mu-util.c b/lib/mu-util.c
index cac5a4a9..a394349b 100644
--- a/lib/mu-util.c
+++ b/lib/mu-util.c
@@ -206,3 +206,3 @@ mu_util_guess_mu_homedir (void)
- if (hdir1 && mu_util_check_dir (hdir1, TRUE, FALSE))
+ if (hdir1 && mu_util_check_dir (hdir1, FALSE, FALSE))
return g_strdup (hdir1);
Following these instructions to get a ro filesystem:
http://unix.stackexchange.com/questions/27449/mount-a-filesystem-read-only-and-redirect-writes-to-ram
That along with this hack:
$ file /tmp/imgmnt/exchange/log/mu.log
/tmp/imgmnt/exchange/log/mu.log: symbolic link to /tmp/mu.log
Makes e.g. mu find work from the command line, you can search a
read-only database, it issues a warning about being unable to create
the cache dir though.
mu4e though keeps erroring out with "db locked by another process". I
haven't traced down why that's happening.
Is there any reason in principle for why the xapian database would
need to be mounted read-write for just browsing the e-mail / doing
searches / never changing any flags?