mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
emacs: Ensure that message-directory for Fcc has a trailing slash
Use `file-name-as-directory' to ensure that message-directory has a trailing slash so it can be combined with the notmuch-fcc-dirs correctly.
This commit is contained in:
parent
07c8eb1db6
commit
24a7a10af2
1 changed files with 3 additions and 1 deletions
|
@ -71,7 +71,9 @@
|
|||
(cdr (assoc-string (message-fetch-field "from") notmuch-fcc-dirs t))))
|
||||
(if (eq subdir nil) (setq subdir (car (car notmuch-fcc-dirs))))
|
||||
(unless (message-fetch-field "fcc")
|
||||
(message-add-header (concat "Fcc: " message-directory subdir)))
|
||||
(message-add-header (concat "Fcc: "
|
||||
(file-name-as-directory message-directory)
|
||||
subdir)))
|
||||
(let ((fcc-header (message-fetch-field "fcc")))
|
||||
(unless (notmuch-maildir-fcc-dir-is-maildir-p fcc-header)
|
||||
(cond ((not (file-writable-p fcc-header))
|
||||
|
|
Loading…
Reference in a new issue