summaryrefslogtreecommitdiffhomepage
path: root/lib/net/jao-notmuch.el
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/jao-notmuch.el')
-rw-r--r--lib/net/jao-notmuch.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/jao-notmuch.el b/lib/net/jao-notmuch.el
index 75ee027..2471dc7 100644
--- a/lib/net/jao-notmuch.el
+++ b/lib/net/jao-notmuch.el
@@ -362,8 +362,8 @@
(defun jao-notmuch-mua--inherited-fcc ()
(let* ((fn (notmuch-show-get-filename))
- (dest (and (string-match ".*/var/mail/\\(.+?\\)/.+" fn)
- (match-string 1 fn)))
+ (dest (and (string-match ".*/\\(var/mail\\|Mail\\)/\\(.+?\\)/.+" fn)
+ (match-string 2 fn)))
(tags (seq-difference (notmuch-show-get-tags)
'("attachment" "sent" "new" "flagged")))
(tagstr (mapconcat (lambda (s) (concat "+" s)) tags " "))