From: David Mazieres <dm-list-email-notmuch@scs.stanford.edu>
To: "Amadeusz Żołnowski" <aidecoe@aidecoe.name>, notmuch@notmuchmail.org
Subject: Re: muchsync files renames
Date: Sun, 23 Aug 2015 13:43:37 -0700 [thread overview]
Message-ID: <87lhd1ohvq.fsf@ta.scs.stanford.edu> (raw)
In-Reply-To: <87oahxojlv.fsf@ta.scs.stanford.edu>
So just to follow up a bit. I looked into things a bit further, and
here is what I found with maildir.synchronize_flags set to true.
Initially, when you run "muchsync --init", it copies all the files to
your maildir, and for each file invokes
notmuch_message_tags_to_maildir_flag. That changes the name of the
file, with the result that the sql database and the actual mail
directory end up out of sync. That on it's own is not a big deal, but
it means that the next time muchsync, muchsync will have to rescan all
of the files, as their names are no longer correct. That shouldn't
cause any extra traffic between the two machines, but it will require
time on the client. That is likely the source of the delay you were
seeing.
However, if you C-c the client during this process, I still don't see
any problems arising that cause more links to be transferred between
machines. So I'm kind of stumped about that part.
Maybe muchsync should create the original file name based on tags, so as
to avoid having to rescan in the common case. I wish there were some
way of getting the renamed file after
notmuch_message_tags_to_maildir_flags.
David
next prev parent reply other threads:[~2015-08-23 20:43 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-22 21:02 muchsync files renames Amadeusz Żołnowski
2015-08-23 5:41 ` David Mazieres
2015-08-23 8:44 ` Amadeusz Żołnowski
2015-08-23 20:06 ` David Mazieres
2015-08-23 20:43 ` David Mazieres [this message]
2015-08-24 22:14 ` Amadeusz Żołnowski
2015-08-26 6:31 ` Amadeusz Żołnowski
[not found] ` <87vbbwnbb4.fsf@freja.aidecoe.name>
[not found] ` <87io7wr50y.fsf@ta.scs.stanford.edu>
2015-08-31 11:59 ` Amadeusz Żołnowski
2015-08-31 17:27 ` dm-list-email-notmuch
2015-08-31 22:11 ` Amadeusz Żołnowski
2015-08-31 23:43 ` David Mazieres
2015-09-01 22:52 ` Amadeusz Żołnowski
2015-09-01 23:20 ` synchronize_flags leaving files in new (was muchsync files renames) dm-list-email-notmuch
2015-09-02 21:01 ` Amadeusz Żołnowski
2015-09-02 0:37 ` muchsync files renames David Bremner
2015-09-02 0:46 ` dm-list-email-notmuch
2015-09-02 21:21 ` Amadeusz Żołnowski
2015-09-02 23:05 ` David Bremner
2015-09-09 17:49 ` Amadeusz Żołnowski
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=87lhd1ohvq.fsf@ta.scs.stanford.edu \
--to=dm-list-email-notmuch@scs.stanford.edu \
--cc=aidecoe@aidecoe.name \
--cc=mazieres-3tpqwgk82pbkbsf24cfhhxaqqw@temporary-address.scs.stanford.edu \
--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).