notmuch-emacs: Fcc to top-level directory given by database.path

Arun Isaac arunisaac at systemreboot.net
Sat Sep 23 02:37:23 PDT 2017


I am using notmuch-emacs, and I would like to Fcc my sent mail to the
top-level directory given by database.path, instead of using a folder
like "sent" relative to the top-level directory.

The function `notmuch-maildir-notmuch-insert-current-buffer' in
notmuch-maildir-fcc.el calls `notmuch insert' with the `--folder='
argument. I would like it to not do this.

For my immediate purposes, I have overridden
`notmuch-maildir-notmuch-insert-current-buffer' with the following
advice. But, it would be nice if this feature existed out of the box.

(define-advice notmuch-maildir-notmuch-insert-current-buffer
      (:override (folder &optional create tags)
		 insert-into-root)
    (apply 'notmuch-call-notmuch-process
	   :stdin-string (buffer-string)
	   "insert" tags))


More information about the notmuch mailing list