wuqui · 2022-10-17 14:07
I would like to execute multiple marks/actions at once.
For example, marking messages as `read` and `flag` them at the same time; or marking messages as `unflag` and trash them at the same time.
I'm hoping that's possible somehow, but I haven't been able to figure out how. Any suggestions?
BobKoss · 2022-10-17 17:45
I don’t know if this answers your question. When I go through my inbox, I hit d for each mail I want to delete. When I’m done, I press x to execute the deletion operation.
wuqui · 2022-10-17 19:11
It doesn't, unfortunately. I do the same thing, but depending on the mailserver's behaviour (e.g. Google Mail), this results in these mails being moved to the 'Bin', but still flagged as `unread` and thus still showing up as `unread` messaged. This is why I would like to mark them for `read` and `trash` at the same time.
Similarly, I often want to delete messaged while also marking them as `unflagged`. If I don't remove their flag, these messages will remain in Gmail's 'starred' section.
Another common use case is `+read` and `+flagged`, but I won't go into detail ...
Doing these things in two steps is inconvenient because I have to mark each mail twice, plus, for example, read messages are immediately removed from my 'todo' search, which is based on `flag:unread or flag:flagged`.
shintak · 2022-10-18 02:23
I don't know if this is an official keybinding since I use evil, but I mark multiple headlines `read` with "!" and execute at once with "x".
FOSSbflakes · 2022-10-18 06:16
I'm not aware of a way to do this directly, but as a substitute you can create a new mark if you do this often.
https://www.djcbsoftware.nl/code/mu/mu4e/Adding-a-new-kind-of-mark.html
wuqui · 2022-10-18 08:00
That's not what I mean, see my comment above. I want to mark several mails as `read` **and** `flagged` at the same time.
wuqui · 2022-10-18 08:02
Yeah, I was thinking that might be the way to go at some point.
However, in practice, I don't know how to define a new mark/action that, for example, applies `read` and `flagged` at the same time. I think it's just my lack of elisp-fu.
Could you or anyone else help with this? Didn't find useful examples online.