Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id CAEA86DE034D for ; Sat, 30 Apr 2016 03:30:17 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.016 X-Spam-Level: X-Spam-Status: No, score=-0.016 tagged_above=-999 required=5 tests=[AWL=-0.005, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bKsvMl-X0OLt for ; Sat, 30 Apr 2016 03:30:09 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 5AE7F6DE0319 for ; Sat, 30 Apr 2016 03:30:09 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84) (envelope-from ) id 1awS9z-0004JV-1D; Sat, 30 Apr 2016 06:30:03 -0400 Received: (nullmailer pid 8958 invoked by uid 1000); Sat, 30 Apr 2016 10:30:05 -0000 From: David Bremner To: sfischme@uwaterloo.ca, Notmuch Mail Subject: Re: notmuch-address-command questions In-Reply-To: <87wpnfn90f.fsf@uwaterloo.ca> References: <87wpnfn90f.fsf@uwaterloo.ca> User-Agent: Notmuch/0.21+99~gd93d377 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Reply-To: me@example.com Date: Sat, 30 Apr 2016 07:29:57 -0300 Message-ID: <87oa8r8k4a.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.20 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: Sat, 30 Apr 2016 10:30:17 -0000 --=-=-= Content-Type: text/plain Sebastian Fischmeister writes: > Hi, > > I'm trying out the internal expansion for notmuch-address-command. One > thing I immediately notice is that it has lag over 250K emails, since > it's lookup up addresses each time. Scripts like nottoomuch-addresses > have cached results of only all email addresses and have instantaneous > response. There is caching with the internal completion, just not between emacs sessions. So the second and following completions in a given session should be much faster. I have almost twice that number of messages, and the lag is barely noticable here. So maybe something's wrong if you're not restarting emacs and still noticing completion lag. You might have a look at the variable "notmuch-address-completions". For me this has a bout 3700 entries in it at a steady state. > The second thing is that it seems to list any email it finds. However, I > don't care about email addresses found in emails from 10 years ago. I > only care about the last two years. > I think the plan was/is make this search customizable in various ways, but so far nobody got around to it. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQGcBAEBCAAGBQJXJIklAAoJEPIClx2kp54sUxIL/RPrjeQM1RBwu3HNv32YEMCs bZtytiQu5Lut5aCj8gSDcpeE6gLQBYSGR1HeytvPaJla1s9pKIxrrEi6nsaWsWgT OMr9JwihuNfYrIv1vDRhICKFEnM3p/0IleZSlcdhDzHjtFL9akX2BKqSXlSL3qAb xcQ/JX2gA3/LY0gZOgBzS0Odr5CpkNhv6qwj00LJOLGEs/tvf5+scZGSPs4q8xck xWrGNYPZxmCSV0QlN/7vQ6poWzxnQWQlIdh/qie5hJvs2XSwuzYob/ekzMfCVBYl 5crCwkcjIkNrArUGwUaP20eIYxhgwNwboDtyEg245BwaNArG+gINtIRpN3soY2rH Ykn1gS8d+JuHOQcSOpe6ZIkbAf2F81FWFuLFnjCp5j/+E0pETvaJwKZrs3dBM1cm N66ucXeLM9k1tEJjVvZW5nXWAcrwb+PoYGc9e60D7aoJHZgxzj3Flv6DSAbTNilL 2XXYI1HseLpMN21E7iecJD4POnUxmsOB11JfwS8eCQ== =JSQS -----END PGP SIGNATURE----- --=-=-=--