unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jesse Rosenthal <jrosenthal@jhu.edu>
To: David Bremner <bremner@unb.ca>, Christoph Groth <cwg@falma.de>
Cc: notmuch@notmuchmail.org
Subject: Re: syncing mail by simply syncing the filesystem
Date: Sat, 12 Jun 2010 09:22:29 -0400	[thread overview]
Message-ID: <87y6eke67e.fsf@lucky.home> (raw)
In-Reply-To: <87vd9o5rtj.fsf@rocinante.cs.unb.ca>

> Another, potentially more elegant approach is to use "notmuch remote"
> scripts written by Jesse Rosenthal. I haven't done this myself, but I
> did think was feasible when I looked at them.

I'd certainly be happy to get some feedback on this idea, but I'm not
sure if it's the right tool for this problem, since it deals with
namespaces and he wants the universal namespace. In other words, I think
it mainly reduces to 'notmuch dump' and 'curl' there (though I could be
forgetting some cleverness on my part).

> On Sat, 12 Jun 2010 09:13:07 +0200, Christoph Groth <cwg@falma.de> wrote:
> > The ideal setup would be one which would allow to use any of my
> > computers independently (for example when I'm away with my laptop).
> > When necessary, the local mail stores would be synchronized by simply
> > syncing the home directory (I'm using unison for this).

Christoph -- some other ideas to think about:

1. If your other computers will have a consistent fast internet
connection (or a sufficient connection to use IMAP) consider remote
usage, keeping your database on one computer:

http://notmuchmail.org/remoteusage/

2. You could brute-force it. Include a nm_dump file as one of your
unison paths, along with your Maildir, then always run:

notmuch dump > nm_dump
unison
notmuch restore nm_dump

If you take a bit of care in how you tell unison nm_dump files, this
also has the benefit of not just assuming the most recent state is the
correct one. But the syntax is pretty easy, so that shouldn't be a
problem. I don't think unison lets you run hooks (I could be wrong), but
this could be easily scriptable.

2a. Just a thought -- would merging be easier if you used git/hg instead
of unison? Just make sure to gitignore your notmuch db.

3. Have an IMAP server on one computer, a notmuch-computer on
another. Have rsync passively pull down from your IMAP maildir. This
doesn't synchronize tags, but it might be good enough if you just want
to check on your phone occasionally.

FWIW, I have a combination of #3 and #1 above.

University --getmail/maildrop--> IMAP server --rsync--> home
                                                        / \
                                                       remote
                                                      /     \
                                                   work     laptop

Anyway, just some ideas. I'm sure there are plenty of others. (Sort of
curious to see them, since I'm sure there has been all sorts of
interesting hacks and workarounds). Everything above is sort of a hacks,
but it all works well enough for me. Hopefully there will be a canonical
solution to this sooner rather than later, though.

Best,
Jesse

  reply	other threads:[~2010-06-12 13:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-12  7:13 syncing mail by simply syncing the filesystem Christoph Groth
2010-06-12 13:00 ` David Bremner
2010-06-12 13:22   ` Jesse Rosenthal [this message]
2010-06-12 13:28     ` Jesse Rosenthal
2010-06-12 15:47     ` Christoph Groth
2010-06-12 16:04       ` Jesse Rosenthal
2010-06-12 13:23 ` Arvid Picciani
2010-06-12 13:37   ` David Bremner
2010-06-12 13:51     ` Arvid Picciani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y6eke67e.fsf@lucky.home \
    --to=jrosenthal@jhu.edu \
    --cc=bremner@unb.ca \
    --cc=cwg@falma.de \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).