unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Michal Sojka <sojkam1@fel.cvut.cz>
To: Stewart Smith <stewart@flamingspork.com>, notmuch@notmuchmail.org
Subject: Re: Mailstore abstraction & maildir synchronization
Date: Fri, 26 Mar 2010 23:08:58 +0100	[thread overview]
Message-ID: <87sk7m91mt.fsf@steelpick.2x.cz> (raw)
In-Reply-To: <874ok68g1z.fsf@willster.local.flamingspork.com>

On Wed, 24 Mar 2010, Stewart Smith wrote:
> On Thu, 18 Mar 2010 16:39:36 +0100, Michal Sojka <sojkam1@fel.cvut.cz> wrote:
> > - Only file-based storage is suported. Notmuch access the files
> >   directly, and not via the mailstore interface.
> 
> It'll be great when this is fixed... should be trivial to add a git
> backend then.

Yes, it seems to be quite trivial. I'll probably look at this tomorrow.
> 
> (i have in no way been looking at tags in git though... doesn't really
> interest me and git aint a database)

My aim is only to store tags in git for the purpose of synchronization.
I'm not interested in searching by tags. The idea is that for every
message there will be an additional blob containging tags - one tag per
line.

> 
> > - (maildir) Viewing/storing of attachments of unread messages doesn't
> >   work. The reason is that when you view the message it its unread tag
> >   is removed which leads to rename of the file, but Emacs still uses
> >   the original name to access the attachment.
> 
> What about migrating from a maildir that's turned into notmuch back to
> this maildir backend? What will be authoritive: maildir or notmuch
> database?

Maildir is authoritative, but only for tags corresponding to maildir
flags. Other tags are never touched by this code. See also the updated
commit message in "[PATCH v2 3/4] Add maildir-based mailstore".

If you want to sync your maildirs with the databse the following should
work (not tested):

notmuch dump > dump
cat <<EOF >> ~/.notmuch-config
[mailstore]
type=maildir
EOF
notmuch restore dump


--Michal

  reply	other threads:[~2010-03-26 22:09 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-18 15:39 Mailstore abstraction & maildir synchronization Michal Sojka
2010-03-18 15:39 ` [PATCH 1/4] Mailstore abstraction interface Michal Sojka
2010-03-18 15:39 ` [PATCH 2/4] Convert mailstore abstraction Michal Sojka
2010-03-18 15:39 ` [PATCH 3/4] Add maildir-based mailstore Michal Sojka
2010-03-23 10:56   ` Ruben Pollan
2010-03-23 13:35     ` Michal Sojka
2010-03-23 14:37       ` Ruben Pollan
2010-03-26 21:41         ` Michal Sojka
2010-03-26 21:42           ` [PATCH v2 1/4] Mailstore abstraction interface Michal Sojka
2010-03-26 21:42           ` [PATCH v2 2/4] Conversion to mailstore abstraction Michal Sojka
2010-03-26 21:42           ` [PATCH v2 3/4] Add maildir-based mailstore Michal Sojka
2010-03-26 21:42           ` [PATCH v2 4/4] Tests for " Michal Sojka
2010-03-18 15:39 ` [PATCH " Michal Sojka
2010-03-23 10:59   ` Ruben Pollan
2010-03-23 13:47     ` Michal Sojka
2010-03-24  5:06 ` Mailstore abstraction & maildir synchronization Stewart Smith
2010-03-26 22:08   ` Michal Sojka [this message]
2010-03-27 20:42     ` Michal Sojka
2010-03-27 20:44       ` [PATCH v3 1/6] Mailstore abstraction interface Michal Sojka
2010-03-27 20:44       ` [PATCH v3 2/6] Conversion to mailstore abstraction Michal Sojka
2010-03-27 20:44       ` [PATCH v3 3/6] Add maildir-based mailstore Michal Sojka
2010-03-27 20:44       ` [PATCH v3 4/6] Tests for " Michal Sojka
2010-03-27 20:44       ` [PATCH v3 5/6] Access messages through mail store interface Michal Sojka
2010-03-27 20:44       ` [PATCH v3 6/6] Add 'cat' subcommand Michal Sojka
2010-03-27 20:49       ` Mailstore abstraction & maildir synchronization Michal Sojka

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=87sk7m91mt.fsf@steelpick.2x.cz \
    --to=sojkam1@fel.cvut.cz \
    --cc=notmuch@notmuchmail.org \
    --cc=stewart@flamingspork.com \
    /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).