unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* address completion issues in notmuch-emacs
@ 2019-07-17 19:26 Rollins, Jameson
  2019-07-17 20:14 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Rollins, Jameson @ 2019-07-17 19:26 UTC (permalink / raw)
  To: notmuch@notmuchmail.org

Hi.  I'm using address completion in notmuch-emacs, but I keep having
problems.  No matter what "Notmuch Address Internal Completion"
customization configuration I use ("sent" or "received") there are tons
of missing addresses that I need.  It seems, though, that the two
configurations might be compliments of each other, and if I could use
both sent *and* received then maybe I would get all the addresses I
need.  Is there some technical reason why the completion doesn't just
use both?

I don't understand the parenthetical comments around these options
either:

( ) sent (more accurate)
(*) received (faster)

Why would they have such performance differences?  And does it really
matter at all?  My understanding is that the addresses are collected
once, so a performance difference at collection seem irrelevant to me,
since I only care about performance when I'm trying to do the actual
completion.

jamie.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: address completion issues in notmuch-emacs
  2019-07-17 19:26 address completion issues in notmuch-emacs Rollins, Jameson
@ 2019-07-17 20:14 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2019-07-17 20:14 UTC (permalink / raw)
  To: Rollins, Jameson, notmuch@notmuchmail.org

"Rollins, Jameson" <jrollins@caltech.edu> writes:

> Hi.  I'm using address completion in notmuch-emacs, but I keep having
> problems.  No matter what "Notmuch Address Internal Completion"
> customization configuration I use ("sent" or "received") there are
> tons of missing addresses that I need.  It seems, though, that the two
> configurations might be compliments of each other, and if I could use
> both sent *and* received then maybe I would get all the addresses I
> need.  Is there some technical reason why the completion doesn't just
> use both?

I don't think so (at least not as an option). It would need an update to
the CLI, or calling "notmuch address" twice.

> I don't understand the parenthetical comments around these options
> either:
>
> ( ) sent (more accurate)
> (*) received (faster)
>
> Why would they have such performance differences?

This as has to do with what is stored in the database (explained in notmuch-address(1)).

> And does it really matter at all?  My understanding is that the
> addresses are collected once, so a performance difference at
> collection seem irrelevant to me, since I only care about performance
> when I'm trying to do the actual completion.

That probably depends

1) whether you use the caching. This is off by default due to
   (mild) privacy concerns. It makes another copy of your addresses,
   e.g. on your laptop for people using remote notmuch.

2) if the answer to (1) is no, how often you restart emacs.

But I'd entertain the idea of making "both" default, if backed by some
timing experiments.

Before getting too far into coding/design, it would be nice to know if
the union of those two options contained all the addresses you were
looking for.

Note that there is some other discussion about improving
notmuch-address:

        https://github.com/aperezdc/notmuch-addrlookup-c/issues/23

I _think_ that is mainly about better sorting, but I'm not 100%
sure.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-17 20:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-17 19:26 address completion issues in notmuch-emacs Rollins, Jameson
2019-07-17 20:14 ` David Bremner

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).