mirror of
https://github.com/d99kris/nmail.git
synced 2026-04-26 09:46:01 +03:00
[GH-ISSUE #93] [Bug] Searching not always produces results #81
Labels
No labels
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nmail#81
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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-fetchingand 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.
@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
proconly instead ofprocedureI get no results.@d99kris commented on GitHub (Feb 5, 2022):
Hi @krackout -
nmailcurrently only supports searching local message cache, effectively meaning one need to enable full sync, either by configuringprefetch_level=3or by triggering a full sync once (or occassionally) by pressings(I use this method) to be able to search the full mailbox.This delay should go away once all messages have been synced.
I bump the version in
masterwhenever I make any changes tonmail, 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 latestmaster- I try to keep it fairly stable.Thanks :)
nmailcurrently does not support partial words nor wildcard searches. I'll try see if wildcard search can be added.@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 matchgoog,google, etc).Feel free to re-open this issue if you have any related follow-up questions.
@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).@d99kris commented on GitHub (Feb 6, 2022):
Ok good to hear it works!
nmailuses the search enginexapian, 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.