pazz / alot

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

Clarify exclude tags #1566

Closed paretje closed 3 years ago

paretje commented 3 years ago

Clarify documentation on exclude_tags to make it more clear the notmuch exclude_tags setting is not used in notmuch. And cleanup of some old unused code loading the notmuch setting.

pazz commented 3 years ago

Can you elaborate on the doc change? The alot setting is independent of the one for notmuch: you could have exclude tags only for alot but not notmuch or vice versa?

paretje commented 3 years ago

Well, I got confused I guess. Somehow it wasn't clear to me that I should set this. But maybe I should drop the commit, in the end it is the result of me wondering why exclude tags didn't work any more, as alot used to use the notmuch exclude_tags (as well?).

pazz commented 3 years ago

As far as I can see, the code that your first commit reverts actually makes alot use/respect the exclude tags defined in notmuch's config doesn't it? I do not remember notmuch renaming or moving this setting into the index (like they did for the named queries at some point).

paretje commented 3 years ago

The code to load the setting was still there, it was passed to get_threads, but it wasn't used. Fixing that would create another issue, as the actual number of results would differ from the count. If notmuch's exclude_tags is respected, we should do so consistently. I'm willing to implement that.

pazz commented 3 years ago

That sounds like a good plan to me. Thanks very much :)

Quoting Kevin Velghe (2021-03-25 11:49:36)

The code to load the setting was still there, it was passed to get_threads, but it wasn't used. Fixing that would create another issue, as the actual number of results would differ from the count. If notmuch's exclude_tags is respected, we should do so consistently. I'm willing to implement that.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.*