pazz / alot

Terminal-based Mail User Agent
GNU General Public License v3.0
695 stars 164 forks source link

Sort threads by subject #1510

Closed lenormf closed 4 years ago

lenormf commented 4 years ago

Hi,

It'd be nice if users could sort search results by subject. My usecase is grabbing all the notifications that have a "tag" in their subject (e.g. "[foo.com] Title", "[another.io] Notification), and then sorting them.

Thanks!

pazz commented 4 years ago

This is not going to happen without a major rewrite of either libnotmuch or the search mode UI. At the moment, search mode can only list results of a single notmuch query, and those can only be listed by oldest/newest first..

lenormf commented 4 years ago

Yea, I noticed NotMuch is quite inflexible on that front, I was hoping that whatever was using the bindings (or the bindings themselves) might be able to work around that…

pazz commented 4 years ago

I guess one could hack around with caching the whole result set and then sorting it yourself, but this may need to introduce some artificial cut-off due to memory constraints.. It could be done, but isn't very natural nor desirable for me personally. PRs are welcome of course if you want to add that.

I guess the more important upcoming change would be a switch to these new notmuch python bindings.

Quoting Frank LENORMAND (2020-05-15 09:42:23)

Yea, I noticed NotMuch is quite inflexible on that front, I was hoping that whatever was using the bindings (or the bindings themselves) might be able to work around that…

— You are receiving this because you modified the open/close state. Reply to this email directly, [1]view it on GitHub, or [2]unsubscribe.

References

Visible links

  1. https://github.com/pazz/alot/issues/1510#issuecomment-629111343
  2. https://github.com/notifications/unsubscribe-auth/AAEZNZ6CVJKVJQBKVRGAEXDRRT567ANCNFSM4NBH4NUQ