]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-maildir-fcc.el
emacs: Use truenames for Fcc paths.
[notmuch] / emacs / notmuch-maildir-fcc.el
index e5e0549be8e10248cd4587b67919e19e724bbc38..3f1c124d4689d80fd8569953c3a005fd71921697 100644 (file)
@@ -110,11 +110,12 @@ will NOT be removed or replaced."
     (when subdir
       (message-add-header
        (concat "Fcc: "
-              ;; If the resulting directory is not an absolute path,
-              ;; prepend the standard notmuch database path.
-              (if (= (elt subdir 0) ?/)
-                  subdir
-                (concat (notmuch-database-path) "/" subdir))))
+              (file-truename
+               ;; If the resulting directory is not an absolute path,
+               ;; prepend the standard notmuch database path.
+               (if (= (elt subdir 0) ?/)
+                   subdir
+                 (concat (notmuch-database-path) "/" subdir)))))
       
       ;; finally test if fcc points to a valid maildir
       (let ((fcc-header (message-fetch-field "Fcc")))