[GH-ISSUE #93] [Bug] Searching not always produces results #81

Closed
opened 2026-03-03 01:19:38 +03:00 by kerem · 5 comments
Owner

Originally created by @krackout on GitHub (Feb 1, 2022).
Original GitHub issue: https://github.com/d99kris/nmail/issues/93

Originally assigned to: @d99kris on GitHub.

Searching (I use /) doesn't always produce results. I'm properly connected, I can view my e-mails, they are cached. I'm trying to search for words that I can see that are there, sometimes I get results sometimes not. Also I haven't seen any results searching unicode text, greek letters for example.

Even when I get results, there is a delay. Pre-fetching and percentage is shown on the upper right screen, although all messages are already cached.

I've compiled nmail, sources from github, v 3.55 (it's a bit odd, since latest seems to be 3.53 on the github page).
Apart from theses problems, it's a wonderful TUI MUA, thank you.

Originally created by @krackout on GitHub (Feb 1, 2022). Original GitHub issue: https://github.com/d99kris/nmail/issues/93 Originally assigned to: @d99kris on GitHub. Searching (I use `/`) doesn't always produce results. I'm properly connected, I can view my e-mails, they are cached. I'm trying to search for words that I can see that are there, sometimes I get results sometimes not. Also I haven't seen any results searching unicode text, greek letters for example. Even when I get results, there is a delay. `Pre-fetching` and percentage is shown on the upper right screen, although all messages are already cached. I've compiled nmail, sources from github, v 3.55 (it's a bit odd, since latest seems to be 3.53 on the github page). Apart from theses problems, it's a wonderful TUI MUA, thank you.
kerem closed this issue 2026-03-03 01:19:38 +03:00
Author
Owner

@krackout commented on GitHub (Feb 1, 2022):

After some more pre-fetches, now searching works fine; unicode also. But on whole words only. If for example I search for proc only instead of procedure I get no results.

<!-- gh-comment-id:1027042735 --> @krackout commented on GitHub (Feb 1, 2022): After some more pre-fetches, now searching works fine; unicode also. But on whole words only. If for example I search for `proc` only instead of `procedure` I get no results.
Author
Owner

@d99kris commented on GitHub (Feb 5, 2022):

Hi @krackout - nmail currently only supports searching local message cache, effectively meaning one need to enable full sync, either by configuring prefetch_level=3 or by triggering a full sync once (or occassionally) by pressing s (I use this method) to be able to search the full mailbox.

Even when I get results, there is a delay.

This delay should go away once all messages have been synced.

v3.55 (it's a bit odd, since latest seems to be 3.53 on the github page)

I bump the version in master whenever I make any changes to nmail, and then periodically I tag a release (once a version is deemed stable after using it for some time). This may happen only once in a few months, unless someone asks for a release. For practical purposes you can simply ignore the releases and just use latest master - I try to keep it fairly stable.

Apart from theses problems, it's a wonderful TUI MUA, thank you.

Thanks :)

But on whole words only. If for example I search for proc only instead of procedure I get no results.

nmail currently does not support partial words nor wildcard searches. I'll try see if wildcard search can be added.

<!-- gh-comment-id:1030525994 --> @d99kris commented on GitHub (Feb 5, 2022): Hi @krackout - `nmail` currently only supports searching local message cache, effectively meaning one need to enable full sync, either by configuring `prefetch_level=3` or by triggering a full sync once (or occassionally) by pressing `s` (I use this method) to be able to search the full mailbox. > Even when I get results, there is a delay. This delay should go away once all messages have been synced. > v3.55 (it's a bit odd, since latest seems to be 3.53 on the github page) I bump the version in `master` whenever I make any changes to `nmail`, and then periodically I tag a release (once a version is deemed stable after using it for some time). This may happen only once in a few months, unless someone asks for a release. For practical purposes you can simply ignore the releases and just use latest `master` - I try to keep it fairly stable. > Apart from theses problems, it's a wonderful TUI MUA, thank you. Thanks :) > But on whole words only. If for example I search for proc only instead of procedure I get no results. `nmail` currently does not support partial words nor wildcard searches. I'll try see if wildcard search can be added.
Author
Owner

@d99kris commented on GitHub (Feb 5, 2022):

With the above commit support for searching for partial words using wildcard (*) has been added. Example of supported search string: goog* (will match goog, google, etc).

Feel free to re-open this issue if you have any related follow-up questions.

<!-- gh-comment-id:1030531346 --> @d99kris commented on GitHub (Feb 5, 2022): With the above commit support for searching for partial words using wildcard (`*`) has been added. Example of supported search string: `goog*` (will match `goog`, `google`, etc). Feel free to re-open this issue if you have any related follow-up questions.
Author
Owner

@krackout commented on GitHub (Feb 5, 2022):

I've just compiled after the new commit, works perfectly, using greek characters also, thank you. A suggestion, if it's easy, in a later commit, perhaps you could add *oogle (wildcard in front).

<!-- gh-comment-id:1030620528 --> @krackout commented on GitHub (Feb 5, 2022): I've just compiled after the new commit, works perfectly, using greek characters also, thank you. A suggestion, if it's easy, in a later commit, perhaps you could add `*oogle` (wildcard in front).
Author
Owner

@d99kris commented on GitHub (Feb 6, 2022):

Ok good to hear it works!

A suggestion, if it's easy, in a later commit, perhaps you could add *oogle (wildcard in front).

nmail uses the search engine xapian, which unfortunately does not support leading wildcard searches as far as I can tell from their docs. So there's unfortunately no quick fix for this.

<!-- gh-comment-id:1030789849 --> @d99kris commented on GitHub (Feb 6, 2022): Ok good to hear it works! > A suggestion, if it's easy, in a later commit, perhaps you could add `*oogle` (wildcard in front). `nmail` uses the search engine `xapian`, which unfortunately does not support leading wildcard searches as far as I can tell from [their docs](https://xapian.org/docs/queryparser.html). So there's unfortunately no quick fix for this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nmail#81
No description provided.