search command does not work #130
Labels
No Label
IMAP
JMAP
Maildir
Retired
User Experience
User Interface
bsd
bug
contacts
currently worked on
documentation
duplicate
easy
enhancement
help wanted
invalid
linux-gnu
macos
mbox
notmuch
question
security
wishlist
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: meli/meli#130
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
I'm having problems with the search command in meli. I've checked the man pages for how to search so I think I'm doing it correctly.
When I type 'search "not flags:seen"' in the command mode, nothing changes. The listings in the current mailbox are the same, nothing has been highlighted as far as I can tell. Meli also doesn't say anything about the command being invalid, like it usually does if somehting is wrong.
However, when I put the filter = "not flags:seen" into my config.yml, the mailbox listings are changed as expected - only the unseen mail is shown.
For context, I am using a Maildir mailbox.
Hello, are you using quotes for the search term? Does "search not flags:seen" work? (Also, try latest version?)
I'm using qutoes, yes. I've just updated to the master branch, and unfortunately
search "not flags:seen"
doesn't work. Though the putting the filter option under the listing section in the config still does work. I wonder if it has something to do with search backends? I have not configured any search backend for meli. Does the search command alter the listing, or am I looking for another command?have you tried without quotes at all?
search not flags:seen
Yes, I have, still does not work sadly. In a few hours, I can provide you my config + screenshots.
Hey, I've attached images and my config.toml to this comment.
search.jpg
is my search command,after.jpg
is after searching.filter.jpg
is after uncommenting the last line in theconfig.toml
and what I expect from the search command.Let me know if you need anything else and if you're able to reproduce the issue. I'm on macOS, might have something to do with it?
My config.toml isn't attaching, so I'll just paste it here:
This is weird behavior, there should have been a clear message shown when the search doesn't work for some reason. I think it's what you said here:
The filter setting is read while making the mail list shown in the terminal, whereas the search is sent to the mail backend. Setting up an sqlite3 backend and building the index should work.
But yeah, in this case an error should be shown. Apologies for the confusion!
I believe this was caused by a combination of things:
I believe these two things are fixed by the following commits I just pushed:
bde87af387
Refactor filter() method in Listing traita42a6ca868
notifications.rs: show notifications in terminal if no alternativeClosing this issue but if the problem persists please re-open it.