One way is to hook into message-send-hook:
message-send-hook is a variable defined in ‘message.el’.
Its value is nil
This variable may be risky if used as a file-local variable.
Hook run before sending messages.
This hook is run quite early when sending.
(defun my-confirm-empty-subject ()
"Allow user to quit when current ...
The intended way to achieve Gmail-style citations is the following:
(setq message-cite-style message-cite-style-gmail))
Inspecting the value and documentation of the alist message-cite-style-gmail provides further insight into the involved settings:
notmuch-tree calls notmuch-tree-worker. notmuch-tree-worker starts a notmuch process via notmuch-start-notmuch.
notmuch-start-notmuch assignes the process notmuch-start-notmuch-sentinel as process sentinel.
I think that is the place where you should hook in your notmuch-thread-view-in-tree function as :after advice with the help of advice-add.
I don't use ...
how to add a hook to a custom interactive command
Call one of the run-hook* functions, as appropriate.
C-hig (elisp)Running Hooks
That said, I'm doubtful that your question actually helps you. You've said that calling (notmuch-thread-view-in-tree) directly doesn't work, and I don't see how using a hook to do the same thing will ...
You can use notmuch-show-view-part (bound to .-v by default) while point is in the text/html part to accomplish this.
For this to function properly you'll need to make sure your ~/.mailcap file has settings for text/html.
Here's what I have in mine on my Mac:
text/html; open %s; nametemplate=%s.html
Each line is ; delimited with the first field specifying ...
I GOT IT!!!
(setq message-cite-style message-cite-style-gmail)
(setq message-citation-line-function 'message-insert-formatted-citation-line))
The message-citation-line-function was the absolute key to this.
EDIT: Still seeing that sometimes gmail replies are fine, and other times they aren't. It's very inconsistent. In ...
If you have not specified anything, it will be the receiver's settings that matter, and that's as it should be. If you want to read your emails in a fixed width font, you should be able to set that; let others read them as they wish.
I found a working answer by using customize-variable message-default-mail-headers and adding: "Bcc: firstname.lastname@example.org
It looks like this in the end (in my emacs-custom.el):
'(message-default-mail-headers "Bcc: email@example.com"
Note that it is required for each mail header line to end in a newline.
I had to install notmuch in order to solve the problem.
Apparently I only had the notmuch-runtime installed but not  notmuch itself.
Installing notmuch with $ sudo pacman -S notmuch was my solution.
I found org-notmuch.el in the contrib/lisp directory of the orgmode git repository. I encountered this error when that git repo was out of sync with my system's org / notmuch. Updating my git checkout resolved the issue.
I found the solution in the archives of the notmuch-mailing list.
I need to remove "application/zip" from `mm-inlined-types'.
Putting this in my init file solved it.
(setq mm-inlined-types (remove "application/zip" mm-inlined-types))
The square boxes are caused by the use of SVG images in notmuch-tag-formats. Why SVG images don't work correctly in emacs-mac-port I don't know. You could modify notmuch-tag-formats to avoid their use.
This doesn't explain the slowdown, which I don't see.