unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* notmuch-address-command questions
@ 2016-04-30  2:08 Sebastian Fischmeister
  2016-04-30 10:29 ` David Bremner
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Fischmeister @ 2016-04-30  2:08 UTC (permalink / raw)
  To: Notmuch Mail

Hi,

I'm trying out the internal expansion for notmuch-address-command. One
thing I immediately notice is that it has lag over 250K emails, since
it's lookup up addresses each time. Scripts like nottoomuch-addresses
have cached results of only all email addresses and have instantaneous
response.

The second thing is that it seems to list any email it finds. However, I
don't care about email addresses found in emails from 10 years ago. I
only care about the last two years.

Maybe the lag can be addressed by addressing the time horizon for the
search: Is it possible to limit the email address search to the last two
years? I currently do this in searches by automatically inserting
"date:2y..now " in the search field for normal email searches.

Thanks.
  Sebastian

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

* Re: notmuch-address-command questions
  2016-04-30  2:08 notmuch-address-command questions Sebastian Fischmeister
@ 2016-04-30 10:29 ` David Bremner
  2016-04-30 13:51   ` Sebastian Fischmeister
  0 siblings, 1 reply; 3+ messages in thread
From: David Bremner @ 2016-04-30 10:29 UTC (permalink / raw)
  To: sfischme, Notmuch Mail

[-- Attachment #1: Type: text/plain, Size: 1133 bytes --]

Sebastian Fischmeister <sfischme@uwaterloo.ca> writes:

> Hi,
>
> I'm trying out the internal expansion for notmuch-address-command. One
> thing I immediately notice is that it has lag over 250K emails, since
> it's lookup up addresses each time. Scripts like nottoomuch-addresses
> have cached results of only all email addresses and have instantaneous
> response.

There is caching with the internal completion, just not between emacs
sessions. So the second and following completions in a given session
should be much faster. I have almost twice that number of messages, and
the lag is barely noticable here. So maybe something's wrong if you're not
restarting emacs and still noticing completion lag.  You might have a
look at the variable "notmuch-address-completions". For me this has a
bout 3700 entries in it at a steady state.

> The second thing is that it seems to list any email it finds. However, I
> don't care about email addresses found in emails from 10 years ago. I
> only care about the last two years.
>

I think the plan was/is make this search customizable in various ways,
but so far nobody got around to it.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 647 bytes --]

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

* Re: notmuch-address-command questions
  2016-04-30 10:29 ` David Bremner
@ 2016-04-30 13:51   ` Sebastian Fischmeister
  0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Fischmeister @ 2016-04-30 13:51 UTC (permalink / raw)
  To: Notmuch Mail

> There is caching with the internal completion, just not between emacs
> sessions.

You are correct. After a couple of addresses completions, it's nearly
instantaneous. I didn't notice that in the test setup.

Thanks,
  Sebastian

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

end of thread, other threads:[~2016-04-30 13:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-30  2:08 notmuch-address-command questions Sebastian Fischmeister
2016-04-30 10:29 ` David Bremner
2016-04-30 13:51   ` Sebastian Fischmeister

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