Skip to main content
added 372 characters in body
Source Link

I've ended up doing it in two discrete steps:

  1. open all buffers from the current (tree) search (may take a few seconds):
(defun notmuch-tree-show-all-messages ()
        (interactive)
        (goto-char (point-min))
            (while (and (not (eobp)) (not (get-buffer (notmuch-tree-get-message-id))))
              (notmuch-tree-show-message-out)
              (previous-buffer)
              (forward-line 1)))
  1. multi-occur only in the opened notmuch messages:
...(defun my-multi-occur-in-notmuch-message-matching-buffers (regexp &optional allbufs)
  "search only in notmuch messages"
  (interactive (occur-read-primary-args))
  (multi-occur-in-matching-buffers "notmuch" regexp (not allbufs)))

ref[1]

May be worth noting that just for the purpose of full-text email search, I'm testing recoll now instead, which indexes all emails ahead of time.

I've ended up doing it in two discrete steps:

  1. open all buffers from the current (tree) search (may take a few seconds):
(defun notmuch-tree-show-all-messages ()
        (interactive)
        (goto-char (point-min))
            (while (and (not (eobp)) (not (get-buffer (notmuch-tree-get-message-id))))
              (notmuch-tree-show-message-out)
              (previous-buffer)
              (forward-line 1)))
  1. multi-occur only in the opened notmuch messages:
...

I've ended up doing it in two discrete steps:

  1. open all buffers from the current (tree) search (may take a few seconds):
(defun notmuch-tree-show-all-messages ()
        (interactive)
        (goto-char (point-min))
            (while (and (not (eobp)) (not (get-buffer (notmuch-tree-get-message-id))))
              (notmuch-tree-show-message-out)
              (previous-buffer)
              (forward-line 1)))
  1. multi-occur only in the opened notmuch messages:
(defun my-multi-occur-in-notmuch-message-matching-buffers (regexp &optional allbufs)
  "search only in notmuch messages"
  (interactive (occur-read-primary-args))
  (multi-occur-in-matching-buffers "notmuch" regexp (not allbufs)))

ref[1]

May be worth noting that just for the purpose of full-text email search, I'm testing recoll now instead, which indexes all emails ahead of time.

Source Link

I've ended up doing it in two discrete steps:

  1. open all buffers from the current (tree) search (may take a few seconds):
(defun notmuch-tree-show-all-messages ()
        (interactive)
        (goto-char (point-min))
            (while (and (not (eobp)) (not (get-buffer (notmuch-tree-get-message-id))))
              (notmuch-tree-show-message-out)
              (previous-buffer)
              (forward-line 1)))
  1. multi-occur only in the opened notmuch messages:
...