From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: Patrick Totzke <patricktotzke@gmail.com>
Cc: notmuch@notmuchmail.org
Subject: Re: notmuch python bindings corrupt db index (was: gmail importer script)
Date: Wed, 12 Dec 2012 19:35:57 +0100 [thread overview]
Message-ID: <CAHmME9qafP5He4hYPEAyrtS4hq3CRNKBQfvxvP=r4L6uDeqt1w@mail.gmail.com> (raw)
In-Reply-To: <20121211182638.27237.98903@brick.lan>
On Tue, Dec 11, 2012 at 7:26 PM, Patrick Totzke <patricktotzke@gmail.com> wrote:
> OK, i assumed i'd not have to download all messages because i already have them
> on disk -- synced via offlineimap. but then i remembered that OI stores uses
> its own naming scheme for the files in a maildir. so thats probably why your script
> did not realize theyre already there. (maybe it should? it could look up the MIDs from notmuch)
Gmail bandwidth restrictions make this unfeasible. Requesting mail
header IDs via IMAP will rate limit the listing to 2 mails per second.
The best gmail will allow us to do at quasi rapid speed (~180kB/s) is
ask for the IMAP sequence number and the unique gmail 64bit number.
So, the maildir scheme winds up being "${gmail-unique-number}.gmail",
and the script doesn't redownload based on the preexistence of a file
with the corresponding name.
> i am kind of reluctant to reproduce this again (on my work-desktop).
It'd really be a huge help if you could backup and try...
> All i did was start your script, writing to the index in another terminal in between (using alot)
> possibly my cronjob fired a "notmuch new; afew.." in between also.
> when I killed your script the index war broken.
>
> Can i turn on some global logging for notmuch to debug this?
> Maybe libnotmuch had trouble with so many db-writes at a time?
That is very wrong and bizarre. I open the database in read/write
mode, which is supposed to lock other programs from accessing it in
this way... Very strange.
next prev parent reply other threads:[~2012-12-12 18:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-11 13:47 notmuch python bindings corrupt db index (was: gmail importer script) Jason A. Donenfeld
2012-12-11 18:26 ` Patrick Totzke
2012-12-12 18:35 ` Jason A. Donenfeld [this message]
2012-12-12 20:49 ` Austin Clements
2012-12-12 21:26 ` David Bremner
2012-12-13 14:33 ` Jason A. Donenfeld
2012-12-13 14:32 ` Jason A. Donenfeld
2012-12-13 16:16 ` Patrick Totzke
2012-12-15 6:18 ` Austin Clements
2012-12-15 8:25 ` Jason A. Donenfeld
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='CAHmME9qafP5He4hYPEAyrtS4hq3CRNKBQfvxvP=r4L6uDeqt1w@mail.gmail.com' \
--to=jason@zx2c4.com \
--cc=notmuch@notmuchmail.org \
--cc=patricktotzke@gmail.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).