From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8CD99431FAE for ; Thu, 14 Jan 2010 23:28:07 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.112 X-Spam-Level: X-Spam-Status: No, score=-0.112 tagged_above=-999 required=5 tests=[AWL=-0.113, BAYES_50=0.001] autolearn=unavailable Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KtHPnpH5paPb for ; Thu, 14 Jan 2010 23:28:05 -0800 (PST) Received: from samir.ibcsolutions.de (samir.ibcsolutions.de [78.47.90.66]) by olra.theworths.org (Postfix) with ESMTP id 624B0431FBC for ; Thu, 14 Jan 2010 23:28:05 -0800 (PST) Received: from 80-254-74-163.dynamic.swissvpn.net ([80.254.74.163] helo=barf) by samir.ibcsolutions.de with esmtpa (Exim 4.69) (envelope-from ) id 1NVgbC-0006Iy-9a; Fri, 15 Jan 2010 08:28:02 +0100 From: Arvid Picciani To: notmuch@notmuchmail.org In-Reply-To: <878wbzx3td.wl%djcb@djcbsoftware.nl> References: <4B4ED7E8.20501@exys.org> <878wc0623y.fsf@exys.org> <20100114183854.1d04f111@hikari> <87fx68e2am.fsf@yoom.home.cworth.org> <878wbzx3td.wl%djcb@djcbsoftware.nl> Content-Type: multipart/mixed; boundary="++----------20100115082741-193676647----------++" Content-Transfer-Encoding: 7bit X-Mailer: Emacs 23.1.1 with etach 1.4.3 Date: Fri, 15 Jan 2010 08:27:50 +0100 Message-ID: <87my0frfnt.fsf@exys.org> MIME-Version: 1.0 Subject: Re: indexing mail? X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jan 2010 07:28:08 -0000 This is a multi-part message in MIME format. --++----------20100115082741-193676647----------++ Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Fri, 15 Jan 2010 08:47:10 +0200, Dirk-Jan C. Binnema wrote: > I take a slighly different approach in mu: works for me, thanks Dirk. patch against HEAD is attached ( i hope. i'm new to emacs mail :D ) It takes around half an hour for my 60K mail on reiserfs, but it did take 10 minutes already on ext4. I suggest having a different approach to feed new mail in, such as: for i in (fetchmail) do notmuch new < $i done --++----------20100115082741-193676647----------++ Content-Type: application/octet-stream; name="notmuch_scandir_stat.patch" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL25vdG11Y2gtbmV3LmMgYi9ub3RtdWNoLW5ldy5jCmluZGV4IDQ5MDEwMWQu LmQ4YWM0YmEgMTAwNjQ0Ci0tLSBhL25vdG11Y2gtbmV3LmMKKysrIGIvbm90bXVjaC1uZXcuYwpA QCAtMTE5LDYgKzExOSwzNyBAQCBpc19tYWlsZGlyIChzdHJ1Y3QgZGlyZW50ICoqZW50cmllcywg aW50IGNvdW50KQogICAgIHJldHVybiAwOwogfQogCisvKgorICBhZGQgZW50cnktPmRfdHlwZQor ICovCisKKyBzdGF0aWMgZ2Jvb2xlYW4KKyBfc2V0X2R0eXBlIChjb25zdCBjaGFyKiBwYXRoLCBz dHJ1Y3QgZGlyZW50ICplbnRyeSkKKyB7CisgICAgIHN0cnVjdCBzdGF0IHN0YXRidWY7CisgICAg IGNoYXIgZnVsbHBhdGhbNDA5Nl07CisKKyAgICAgc25wcmludGYgKGZ1bGxwYXRoLCBzaXplb2Yo ZnVsbHBhdGgpLCAiJXMlYyVzIiwKKyAgICAgICAgICAgcGF0aCwgR19ESVJfU0VQQVJBVE9SLCBl bnRyeS0+ZF9uYW1lKTsKKworICAgICBpZiAoc3RhdCAoZnVsbHBhdGgsICZzdGF0YnVmKSAhPSAw KSB7CisgICAgICAgICBnX3dhcm5pbmcgKCJzdGF0IGZhaWxlZCBvbiAlczogJXMiLCBmdWxscGF0 aCwKKyAgICAgICAgICAgICAgICBzdHJlcnJvcihlcnJubykpOworICAgICAgICAgcmV0dXJuIEZB TFNFOworICAgICB9CisKKyAgICAgLyogd2Ugb25seSBjYXJlIGFib3V0IGRpcnMsIHJlZ3VsYXIg ZmlsZXMgYW5kIGxpbmtzICovCisgICAgIGlmIChTX0lTUkVHIChzdGF0YnVmLnN0X21vZGUpKQor ICAgICAgICAgZW50cnktPmRfdHlwZSA9IERUX1JFRzsKKyAgICAgZWxzZSBpZiAoU19JU0RJUiAo c3RhdGJ1Zi5zdF9tb2RlKSkKKyAgICAgICAgIGVudHJ5LT5kX3R5cGUgPSBEVF9ESVI7CisgICAg IGVsc2UgaWYgKFNfSVNMTksgKHN0YXRidWYuc3RfbW9kZSkpCisgICAgICAgICBlbnRyeS0+ZF90 eXBlID0gRFRfTE5LOworCisgICAgIHJldHVybiBUUlVFOworIH0KKworCiAvKiBFeGFtaW5lICdw YXRoJyByZWN1cnNpdmVseSBhcyBmb2xsb3dzOgogICoKICAqICAgbyBBc2sgdGhlIGZpbGVzeXN0 ZW0gZm9yIHRoZSBtdGltZSBvZiAncGF0aCcgKGZzX210aW1lKQpAQCAtMTg2LDYgKzIxNywxMSBA QCBhZGRfZmlsZXNfcmVjdXJzaXZlIChub3RtdWNoX2RhdGFiYXNlX3QgKm5vdG11Y2gsCiAJICAg IGJyZWFrOwogCiAgICAgICAgIGVudHJ5PSBuYW1lbGlzdFtpKytdOworICAgICAgICAvKiBoYW5k bGUgRlNzIHRoYXQgZG9uJ3Qgc3VwcG9ydCBlbnRyeS0+ZF90eXBlICovCisgICAgICAgIGlmIChl bnRyeS0+ZF90eXBlID09IERUX1VOS05PV04pCisgICAgICAgICAgICBfc2V0X2R0eXBlIChwYXRo LCBlbnRyeSk7CisKKwogCiAJLyogSWYgdGhpcyBkaXJlY3RvcnkgaGFzbid0IGJlZW4gbW9kaWZp ZWQgc2luY2UgdGhlIGxhc3QKIAkgKiBhZGRfZmlsZXMsIHRoZW4gd2Ugb25seSBuZWVkIHRvIGxv b2sgZnVydGhlciBmb3IK --++----------20100115082741-193676647----------++--