From: Tomi Ollila <tomi.ollila@iki.fi>
To: "Philipp Überbacher" <murks@lavabit.com>,
"Tomi Ollila" <tomi.ollila@iki.fi>,
notmuch@notmuchmail.org
Subject: Re: ANNOUNCE: nottoomuch-addresses.pl version 1.4
Date: Fri, 16 Dec 2011 16:18:22 +0200 [thread overview]
Message-ID: <yf6k45wfvm9.fsf@taco2.nixu.fi> (raw)
In-Reply-To: <20111216130128.E918211BC52@karen.lavabit.com>
On Fri, 16 Dec 2011 14:01:26 +0100, Philipp Überbacher <murks@lavabit.com> wrote:
> Quoting Tomi Ollila (2011-12-14 21:10:28)
>
> Hi Tomi,
> can this be used to automatically populate abook?
> I wonder because alot uses abook for addresses, and this could be handy.
Converter from 'flat list of email-addresses' in
$HOME/.config/nottoomuch/addresses to abook format is probably pretty
trivial (unless it is binary which lessens triviality...)... But there
could be (updating) issues.
Alternative would be to run something like
notmuch search --sort=newest-first --output=files '*' |
while read file; do abook --add-email "$file"; done
initially. then register current date using date=`$date +%s`
and, in following rounds run
notmuch search --sort=newest-first --output=files $(($date - 604800)).. |
while read file; do abook --add-email "$file"; done
(604800 == 86400 * 7 -- 7 days -- just analogous what nottoomuch-addresses.sh
does)
Note that this is just untested example (read abook.1 a bit)
An alternative would be to make 'abook' run nottoomuch-addresses.sh for
address completion (then get it's output order for matches (email addresses
from recent messages first)) -- or even just run
grep -aiF "$string" "${XDG_CONFIG_HOME:-$HOME/.config}/nottoomuch/addresses"
(this is what nottoomuch-addresses.sh does when finding matches for given
search string. One can imagine how fast this approach is...)
> Regards,
> Philipp
Tomi
next prev parent reply other threads:[~2011-12-16 14:18 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-01 15:36 ANNOUNCE: nottoomuch-addresses.pl Tomi Ollila
2011-12-01 18:38 ` Bart Bunting
2011-12-02 7:37 ` Tomi Ollila
2011-12-05 11:51 ` Tomi Ollila
2011-12-05 12:04 ` Bart Bunting
2011-12-05 12:35 ` Tomi Ollila
2011-12-05 12:55 ` Jameson Graef Rollins
2011-12-05 21:45 ` Bart Bunting
2011-12-06 4:43 ` Bart Bunting
2011-12-06 22:03 ` Tomi Ollila
2011-12-12 16:05 ` ANNOUNCE: nottoomuch-addresses.pl version 1.3 Tomi Ollila
2011-12-14 20:10 ` ANNOUNCE: nottoomuch-addresses.pl version 1.4 Tomi Ollila
[not found] ` <20111216130128.E918211BC52@karen.lavabit.com>
2011-12-16 14:18 ` Tomi Ollila [this message]
2011-12-23 9:37 ` ANNOUNCE: nottoomuch-addresses.sh version 1.5 Tomi Ollila
2011-12-30 16:42 ` ANNOUNCE: nottoomuch-addresses.sh version 1.6 Tomi Ollila
2012-01-18 7:14 ` ANNOUNCE: nottoomuch-addresses.sh 2.0 Tomi Ollila
2012-02-22 19:53 ` ANNOUNCE: nottoomuch-addresses.sh 2.1 Tomi Ollila
2014-03-29 16:07 ` ANNOUNCE: nottoomuch-addresses.sh 2.2 Tomi Ollila
2014-09-17 19:02 ` ANNOUNCE: nottoomuch-addresses.sh 2.3 Tomi Ollila
2014-09-17 19:14 ` ANNOUNCE: notmuch-abook v1.6 [Was: Re: ANNOUNCE: nottoomuch-addresses.sh 2.3] guyzmo
2014-09-18 6:54 ` Rainer M Krug
[not found] ` <20140918085411.GD1079@vilya.online.net>
2014-09-18 10:26 ` Rainer M Krug
2020-10-03 12:07 ` ANNOUNCE: nottoomuch-addresses.sh 2.5 Tomi Ollila
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yf6k45wfvm9.fsf@taco2.nixu.fi \
--to=tomi.ollila@iki.fi \
--cc=murks@lavabit.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).