On Fri, 19 Jan 2018, Bastian wrote:
> On 19Jan18 11:03 +0100, Till Smejkal wrote:
> > I am using notmuch to index my mails for years now and I am very happy with 
> > its
> > performance and functionality.
> > 
> > On Fri, 19 Jan 2018, Bastian wrote:
> > > I really love and depend on mu's feature to track mail adresses of all 
> > > indexed mails. I use 
> > > 
> > >   set query_command="mu cfind --format mutt-ab %s"
> > > 
> > > as an address book replacement for mutt.
> > 
> > Recent versions of notmuch have 'notmuch address'. This can be used to 
> > query for
> > addresses in all indexed mails. Another possibility is to directly use the 
> > notmuch
> > library to run queries on the indexed mails and write your own script. 
> > That's what I
> > do, since I don't really like the output of 'notmuch address'. If you want, 
> > I can
> > share the code with you.
> 
> I'll try to test both :) So I'll get the latest notmuch version and see 
> if the address subcommand is enough.
> But if you are so kind and could send me your script, I'll also like to 
> see how you interact with notmuch directly.

[Also replying back to the mutt-user list]

Sure, try both and choose the one that fits your use case. You can find my 
script
here [1]. It requires the python bindings for libnotmuch. Since I use Arch 
Linux,
these bindings are shipped with the 'notmuch' package. But you should check your
distribution.

Cheers
Till

[1] https://github.com/l3nkz/mutt-tools/blob/master/mutt_addresses

Reply via email to