summaryrefslogtreecommitdiff
path: root/piem-eww.el
diff options
context:
space:
mode:
Diffstat (limited to 'piem-eww.el')
-rw-r--r--piem-eww.el7
1 files changed, 1 insertions, 6 deletions
diff --git a/piem-eww.el b/piem-eww.el
index e8c77f5..5fb629b 100644
--- a/piem-eww.el
+++ b/piem-eww.el
@@ -38,12 +38,7 @@
"Return inbox name from an EWW buffer."
(when (derived-mode-p 'eww-mode)
(when-let ((link (plist-get eww-data :url)))
- ;; NEEDSWORK: This relies on the inbox name in the URL matching
- ;; the inbox name in `piem-inboxes', which might not be the
- ;; case. If there's a :url in `piem-inboxes', that could be
- ;; matched instead.
- (and (string-match piem-link-re link)
- (match-string 1 link)))))
+ (piem-inbox-by-url-match link))))
(defun piem-eww-get-mid ()
"Return the message ID of an EWW buffer."