ANNOUNCE: nottoomuch-addresses.sh 2.2

Subject: ANNOUNCE: nottoomuch-addresses.sh 2.2

Date: Sat, 29 Mar 2014 18:07:43 +0200

To: notmuch@notmuchmail.org

Cc:

From: Tomi Ollila


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 <http://notmuchmail.org>`_ 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:
#       <user@host>
#       "phrase" <user@host>
#       "phrase (comment)" <user@host>
#       <user@host> (comment)
#   * In case email address is in form "someuser@somehost" <someuser@somehost>
#     i.e. the phrase is exactly the same as <address>, 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 <TAB> 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

Thread: