unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jesse Rosenthal <jrosenthal@jhu.edu>
To: Christoph Groth <cwg@falma.de>, notmuch@notmuchmail.org
Subject: Re: syncing mail by simply syncing the filesystem
Date: Sat, 12 Jun 2010 12:04:44 -0400	[thread overview]
Message-ID: <87sk4sdyoz.fsf@lucky.home> (raw)
In-Reply-To: <87eigc9rt0.fsf@falma.de>

Hi Christoph,

On Sat, 12 Jun 2010 17:47:07 +0200, Christoph Groth <cwg@falma.de> wrote:
> > notmuch dump > nm_dump
> > unison
> > notmuch restore nm_dump
> 
> This might actually be the perfect solution, if notmuch is fast enough
> to dump and restore the tags in a few seconds.

Well, it's a bit slower than that. Restoring will be more in the
multiples of tens of seconds (though perhaps less if you're using
searches much more than tags). If you're only doing it once in a while,
it'll be okay (especially since it'll pale next to the speed of
unison-ing maildirs), but it could get to be a bit of a pain.

I was thinking about how to cut this down in a previous email exchange
on the list:

id:87aaru5yi2.fsf@jhu.edu

(http://mid.gmane.org/87aaru5yi2.fsf@jhu.edu)

The key part is that if I think restore (which is what takes more time)
leaves unmentioned messages as they are, so you can run it on a diff, so
something like:

nm dump desktop>desktop-dump; nm dump laptop>laptop-dump; 
diff laptop-dump desktop | grep "^>" | etc...

So when you restore, you'd only be restoring the changes, and it would
drop to a second or two. If you're scripting all the other stuff
together with unison, this could be part of the script as well.

Anyway, this is all rather raw -- my own use-cases haven't made it
necessary to do anything more than spout off on the mailing list about
it.

Best,
Jesse

  reply	other threads:[~2010-06-12 16:05 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
2010-06-12 13:28     ` Jesse Rosenthal
2010-06-12 15:47     ` Christoph Groth
2010-06-12 16:04       ` Jesse Rosenthal [this message]
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=87sk4sdyoz.fsf@lucky.home \
    --to=jrosenthal@jhu.edu \
    --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).