Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 678194196F2 for ; Tue, 20 Apr 2010 14:33:22 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.8 X-Spam-Level: X-Spam-Status: No, score=0.8 tagged_above=-999 required=5 tests=[BAYES_50=0.8] autolearn=ham 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 JpYCe+UXiO6b for ; Tue, 20 Apr 2010 14:33:21 -0700 (PDT) Received: from homiemail-a17.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by olra.theworths.org (Postfix) with ESMTP id 82FC0431FC1 for ; Tue, 20 Apr 2010 14:33:21 -0700 (PDT) Received: from sspaeth.de (unknown [195.190.188.219]) by homiemail-a17.g.dreamhost.com (Postfix) with ESMTPA id 929867A8063 for ; Tue, 20 Apr 2010 14:33:19 -0700 (PDT) Received: by sspaeth.de (sSMTP sendmail emulation); Tue, 20 Apr 2010 23:33:11 +0200 From: "Sebastian Spaeth" To: Notmuch development list Subject: Address completion Date: Tue, 20 Apr 2010 23:33:11 +0200 Message-ID: <87bpddg67c.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Tue, 20 Apr 2010 21:33:22 -0000 Oh my goodness. I just tried http://github.com/dme/notmuch/raw/dme-play/emacs/notmuch-address.el together with the latest version of my "addrlookup" tool (which does the same as jkr's notmuch_addresses.py) and it just works, even in current cworth/master. Address completion for to: and cc: headers based on my notmuch database, sweet! Thanks David. I only need to reverse the sort order of addrlookup as this uses most-to-least likely (which is more intuitive than eudc's least-to-most likely sort order). BTW, addrlookup now first tries to find matches that I previously sent mails to and failing that it will try to find matches for all from: addresses that match the search. It would be trivial to include cworth's 3rd pass (or rather the 1st one) of checking entries with an "address book" tag first. Which would satisfy his entry in the notmuch TODO :-). which tag would make most sense? And if a message had such a tag, would that mean the to: or the from: is in the address book? Carl? It's your idea :-) Sebastian