Discussion:
[MlMt] Should keybindings affect implicitly-selected messages?
Randall Meadows
2018-10-19 18:15:27 UTC
Permalink
Since I'm new to key bindings, I don't know if this is expected
behavior, or perhaps a bug. But here's the deal...

I don't like having "wayward" unread messages lying around; I use the
count tokens as a cue for what I need to process. When I have said
count tokens next to my deleted messages, it's like a mini speed bump to
my mental processing.

So, I created a keybinding that purportedly removes the "SEEN" tag from
the selected message[s] and moves it|them to the Trash. This seems to
work just fine for a single message, and for multiple "peer"
messages—e.g., unrelated messages, or messages that don't have a
"parent-child message-reply" relationship in a thread, whereby there is
a disclosure triangle on the parent in order to show the child.

In that case, when the disclosure is closed, and only the "parent" is
selected, my keybinding does indeed move all messages to the Trash, but
only the selected "parent" has its SEEN tag removed; the "child" remain
"unread" in the Trash.

I hope my explanation of what I'm seeing makes sense. Should I expect
*all* the actions of the keybinding to be executed on *all* the selected
(whether explicit or implicit) messages?

 
Thanks!
randy
Benny Kjær Nielsen
2018-10-24 12:10:44 UTC
Permalink
Post by Randall Meadows
In that case, when the disclosure is closed, and only the "parent" is
selected, my keybinding does indeed move all messages to the Trash,
but only the selected "parent" has its SEEN tag removed; the "child"
remain "unread" in the Trash.
I hope my explanation of what I'm seeing makes sense. Should I expect
*all* the actions of the keybinding to be executed on *all* the
selected (whether explicit or implicit) messages?
It's kind of a bug. If you use `markAsRead:` in your key binding then I
believe it works as expected. The code handling when to apply something
to all messages (when collapsed) isn't quite as general as it should be.

You could also add a rule to your “Deleted Messages” mailbox which
marks anything coming into it as read. That would work no matter how
it's moved.

Also, make sure you know that it's possible to disabled the counter for
the mailbox using “Displayed Count” in the Mailbox menu.
--
Benny
https://freron.com/become_a_mailmate_patron/
Loading...