view: add peek flag and propagate

Add a peek flag -p to the view commands to open the message viewer
without setting the "seen" flag. If the flag is set, it would ignore the
"auto-mark-read" config.

The SetSeen flag will be propagated in case the message viewer moves on
to other messages, i.e. with the delete or archive commands.

Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
Koni Marti 2022-10-03 23:56:07 +02:00 committed by Robin Jarry
parent e4d418eed1
commit d3b62dd3b0
6 changed files with 32 additions and 8 deletions

View file

@ -374,8 +374,10 @@ message list, the message in the message viewer, etc).
*toggle-threads*
Toggles between message threading and the normal message list.
*view*
Opens the message viewer to display the selected message.
*view* [-p]
Opens the message viewer to display the selected message. If the peek
flag -p is set, the message will not be marked as "seen" and ignores the
"auto-mark-read" config.
## MESSAGE VIEW COMMANDS