mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
contrib: pick: if no target specified go to first matching message
This commit is contained in:
parent
9a64b2df29
commit
f9aad24f02
1 changed files with 4 additions and 2 deletions
|
@ -652,8 +652,10 @@ unchanged ADDRESS if parsing fails."
|
|||
(save-excursion
|
||||
(goto-char (point-max))
|
||||
(notmuch-pick-insert-msg msg))
|
||||
(let ((msg-id (notmuch-id-to-query (plist-get msg :id))))
|
||||
(when (string= msg-id notmuch-pick-target-msg)
|
||||
(let ((msg-id (notmuch-id-to-query (plist-get msg :id)))
|
||||
(target notmuch-pick-target-msg))
|
||||
(when (or (and (not target) (plist-get msg :match))
|
||||
(string= msg-id target))
|
||||
(setq notmuch-pick-target-msg "found")
|
||||
(goto-char (point-max))
|
||||
(forward-line -1))))
|
||||
|
|
Loading…
Reference in a new issue