unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] Mailstore abstraction v4 - part 2 (maildir synchronization)
@ 2010-04-08 15:13 Michal Sojka
  2010-04-08 15:13 ` [PATCH] Add maildir-based mailstore Michal Sojka
  2010-04-12  8:18 ` [PATCH] Mailstore abstraction v4 - part 2 (maildir synchronization) martin f krafft
  0 siblings, 2 replies; 6+ messages in thread
From: Michal Sojka @ 2010-04-08 15:13 UTC (permalink / raw)
  To: notmuch

This is the second part of mailstore abstraction patches. I do not
want this to be merged yet, but there might be some people interested
in testing this.

This patch adds a mailstore, which bi-directionally synchronizes
certain tags with maildir flags.

I use it already four weeks and it works quite well. There are the
following know bugs:

1) Viewing/storing of attachments of unread messages doesn't work. The
   reason is that when you view the message its unread tag is removed
   by elisp code. This leads to rename of the file, but Emacs still
   uses the original name to access message with the attachment.

   Workaround: close the message and open it again.

   I'm working on the solution - if the mailstore cannot open the
   message with the name passed, it tries different names with
   different maildir flags.

2) If there several messages with the same ID (e.g. one in sent folder
   and one sent back by mailing list), the flags are synchronized to
   only one of these files.

   I plan to do this:

   - When a tag is added/removed in notmuch, flags of all
     files corresponding to the message will be updated.
   - If we detect (during notmuch new) that flags of one file were
     changed by somebody else, we also change the flags for the other
     files corresponding to the message.
   - If we detect (during notmuch new) that flags of two or more files
     were changed by somebody else, we have to solve the conflict
     somehow, but I didn't invent how, yet.

The full series is available at
http://rtime.felk.cvut.cz/gitweb/notmuch.git/shortlog/refs/heads/mailstore-abstraction-v4
and can be pulled by

   git pull git://rtime.felk.cvut.cz/notmuch.git mailstore-abstraction-v4

Besides the patch sent here, there are also tests for the maildir
mailstore and a not finished implementation of the solution for 1)
above.

--Michal
   

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-04-12 13:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-08 15:13 [PATCH] Mailstore abstraction v4 - part 2 (maildir synchronization) Michal Sojka
2010-04-08 15:13 ` [PATCH] Add maildir-based mailstore Michal Sojka
2010-04-12  8:18 ` [PATCH] Mailstore abstraction v4 - part 2 (maildir synchronization) martin f krafft
2010-04-12 11:47   ` Michal Sojka
2010-04-12 12:38     ` martin f krafft
2010-04-12 13:23       ` Michal Sojka

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).