summaryrefslogtreecommitdiff
path: root/piem-elfeed.el
diff options
context:
space:
mode:
Diffstat (limited to 'piem-elfeed.el')
-rw-r--r--piem-elfeed.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/piem-elfeed.el b/piem-elfeed.el
index e1ee2f8..5a6472b 100644
--- a/piem-elfeed.el
+++ b/piem-elfeed.el
@@ -39,8 +39,7 @@
"Return inbox name from an `elfeed-show-mode' buffer."
(when (derived-mode-p 'elfeed-show-mode)
(when-let ((link (elfeed-entry-link elfeed-show-entry)))
- (and (string-match piem-link-re link)
- (match-string 1 link)))))
+ (piem-inbox-by-url-match link))))
(defun piem-elfeed-get-mid ()
"Return the message ID of an `elfeed-show-mode' buffer."