diff options
| -rw-r--r-- | mu4e/mu4e-view.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mu4e/mu4e-view.el b/mu4e/mu4e-view.el index 2b9dda2..7ee4761 100644 --- a/mu4e/mu4e-view.el +++ b/mu4e/mu4e-view.el @@ -1091,8 +1091,12 @@ corresponding Gnus selector button in the buffer." (lambda (h) (equal (mm-handle-media-type h) "text/plain")) children)) (target (if (mm-handle-displayed-p html) plain html)) - (pos (text-property-any (point-min) (point-max) - 'gnus-data target))) + ;; Search from the body (this avoids find the wrong + ;; `gnus-data' in the Attachments: header, if any. + (pos (save-excursion + (article-goto-body) + (text-property-any (point) (point-max) + 'gnus-data target)))) (progn (goto-char pos) (gnus-article-press-button) |
