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 3B642431FBD for ; Sat, 29 Mar 2014 09:07:57 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled 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 ilE34U8z2mlu for ; Sat, 29 Mar 2014 09:07:51 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by olra.theworths.org (Postfix) with ESMTP id 9CD71431FBC for ; Sat, 29 Mar 2014 09:07:51 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 71DFA1000E5 for ; Sat, 29 Mar 2014 18:07:43 +0200 (EET) From: Tomi Ollila To: notmuch@notmuchmail.org Subject: ANNOUNCE: nottoomuch-addresses.sh 2.2 In-Reply-To: References: User-Agent: Notmuch/0.17+171~g9a127b7 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain 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: Sat, 29 Mar 2014 16:07:57 -0000 Hi all Here is a new version of nottoomuch-addresses.sh, after a while of dogfooding... nottoomuch-addresses.sh ======================= *Nottoomuch-addresses.sh* is an email address completion/matching tool to be used with `notmuch `_ mail user agents. *Nottoomuch-addresses.sh* works by caching the email addresses from users' email files and then doing (fgrep) matching against that cache when requested. The matching part is very fast. above from: https://github.com/domo141/nottoomuch/blob/master/nottoomuch-addresses.rst For those who have been using version 2.1, the changes are: # Version 2.2 2014-03-29 15:12:14 UTC # * In case there is both {phrase} and (comment) in an email address, # append comment to the phrase. This will make more duplicates to be # removed. Now there can be: # # "phrase" # "phrase (comment)" # (comment) # * In case email address is in form "someuser@somehost" # i.e. the phrase is exactly the same as
, phrase is dropped. I planned to do some more combining of emails, but it proved to be a bit more challenging that I thought of. The Bar, Foo -> Foo Bar conversion looks like an interesting thing to do next which I will investigate in future... The new version is available at https://raw.githubusercontent.com/domo141/nottoomuch/master/nottoomuch-addresses.sh or git clone https://github.com:domo141/nottoomuch.git and then by picking nottoomuch-addresses.sh from there. How to install (also written in that nottoomuch-addresses.rst link above): 1) Download the program from above url on the machine you're running notmuch and find suitable location to it. 2) Verify it's sha1 checksum is 3855dd7b07490c0440deb7984633893b1847879d 3) chmod 755 /path/to/nottoomuch-addresses.sh 4) Run /path/to/nottoomuch-addresses.sh --update When run first time this gathers email addresses from all of your mail. This may take a long while to complete -- depends on the amount of email you have. Further --updates are much faster as those just take addresses from new mail. 5) Test that it works: Run /path/to/nottoomuch-addresses.sh notmuchmail 6) In case you're using emacs mua with notmuch, edit your notmuch configuration for emacs with the following content: (require 'notmuch-address) (setq notmuch-address-command "/path/to/nottoomuch-addresses.sh") (notmuch-address-message-insinuate) 7) Restart emacs notmuch mua (or eval above lines) and start composing new mail. When adding recipient to To: field. press after 3 or more characters have been added. In case you get 2 or more address matches, use arrow keys in minibuffer to choose desired recipient... 8) Enjoy! /path/to/nottoomuch-addresses.sh --help provides more detailed information. BR, Tomi