-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option --all of tagging commands should apply to matched messages only #1643
Comments
Quoting Gustavo José de Sousa (2024-01-12 11:50:21)
Describe the solution you'd like
IMO, we should apply the modifications to only the currently matched messages.
I don't think this is possible because what happens is alot extracts the query from the buffer
and fires up a (notmuch) tag command for that string. The search buffer does not really have a reference to all matches..
|
Yeah, that would require some partial re-implementation, we would need to keep the set of matched msgids for this. So, is this a wontfix? |
I suppose it is a wontfix, yes.
The thing is that the set of matched IDs can be *huge*. Just search for `*` and you get all messages, which can take up lots of space and is very inefficient to store explicitly, however you do this.
Quoting Gustavo José de Sousa (2024-01-12 17:56:23)
… Yeah, that would require some partial re-implementation, we would need to keep
the set of matched msgids for this.
So, is this a wontfix?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.*Message ID: <pazz/alot/issues/
***@***.***>
|
Can we fix this specific problem (with new mail arriving) by appending a |
From |
I see your point. Well, in the common use case, I would expect searches that are interesting to the user not to return a huge among of results. Thinking about that, maybe we could have an I think a limit of 1000 messages would be a reasonable one: extrapolating to message ids of 100 bytes each, we would store about 98KiB of msgid content plus some overhead from the data structure. Maybe this limit could also be a configurable value. |
One thing to consider is also that one may have several buffers open with overlapping matches.
If you then toggle a tag based on the matches when the buffer was opened you run into weirdness.
In any case, I am not strongly opposed to any suggestions in principle. If you whip something up
and people like it, I will merge it.
P
Quoting Gustavo José de Sousa (2024-01-15 13:21:12)
… I suppose it is a wontfix, yes. The thing is that the set of matched IDs
can be huge. Just search for * and you get all messages, which can take up
lots of space and is very inefficient to store explicitly, however you do
this. Quoting Gustavo José de Sousa (2024-01-12 17:56:23)
…
Yeah, that would require some partial re-implementation, we would need to
keep the set of matched msgids for this. So, is this a wontfix? — Reply to
this email directly, view it on GitHub, or unsubscribe. You are receiving
this because you commented.Message ID: <pazz/alot/issues/ @.**>
I see your point.
Well, in the common use case, I would expect searches that are interesting to
the user not to return a huge among of results. Thinking about that, maybe we
could have an --all-matched option that would only work if the current search
did not reach a certain limit of matched messages? Otherwise it could bail out
with an error message.
I think a limit of 1000 messages would be a reasonable one: extrapolating to
message ids of 100 bytes each, we would store about 98KiB of msgid content plus
some overhead from the data structure.
Maybe this limit could also be a configurable value.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.*Message ID: <pazz/alot/issues/
***@***.***>
|
Is your feature request related to a problem? Please describe.
Currently the option
--all
redoes the query to apply modifications to the tags. This could be problematic in the following scenario:--all
(e.g.untag --all inbox,unread
);Describe the solution you'd like
IMO, we should apply the modifications to only the currently matched messages.
The text was updated successfully, but these errors were encountered: