summaryrefslogtreecommitdiffhomepage
path: root/lib/net
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/jao-notmuch.el7
-rw-r--r--lib/net/jao-url.el9
2 files changed, 13 insertions, 3 deletions
diff --git a/lib/net/jao-notmuch.el b/lib/net/jao-notmuch.el
index 73f6420..404eab7 100644
--- a/lib/net/jao-notmuch.el
+++ b/lib/net/jao-notmuch.el
@@ -212,7 +212,7 @@
(with-current-buffer notmuch-tree-message-buffer
(jao-notmuch--view-html))))))
-;;; header line with thread message counts
+;;; header and mode lines with thread message counts
(defun jao-notmuch--looking-at-new-p (&optional p)
(when-let (ts (if p (plist-get p :tags) (notmuch-show-get-tags)))
@@ -266,7 +266,8 @@
(with-current-buffer b
(and (derived-mode-p 'notmuch-tree-mode) b)))
(buffer-list))))
- `((:eval (jao-notmuch--format-header-line ,(buffer-name tb) ,cb ,subject)))
+ `((:eval
+ (jao-notmuch--format-header-line ,(buffer-name tb) ,cb ,subject)))
(concat " " subject)))
(defun jao-notmuch--format-lighter ()
@@ -353,7 +354,7 @@
;;; fcc
(defvar jao-notmuch-tags-not-inherited
- '("attachment" "sent" "new" "trove" "flagged" "drivel"))
+ '("attachment" "sent" "new" "trove" "flagged" "drivel" "replied"))
(defvar jao-notmuch-sent-dir "sent")
diff --git a/lib/net/jao-url.el b/lib/net/jao-url.el
index 9e58f99..ac66cef 100644
--- a/lib/net/jao-url.el
+++ b/lib/net/jao-url.el
@@ -32,5 +32,14 @@
(and (derived-mode-p 'eww-mode) (plist-get eww-data :url))))))
+(defun jao-url-email-url ()
+ (save-excursion
+ (goto-char (point-min))
+ (when (or (search-forward-regexp "^Via: h" nil t)
+ (search-forward-regexp "^URL:[\n ]h" nil t)
+ (and (search-forward-regexp "^Link$" nil t)
+ (not (beginning-of-line))))
+ (jao-url-around-point))))
+
(provide 'jao-url)
;;; jao-url.el ends here