On Sun, Nov 16 2014, Lele Gaifax wrote: > Hi all, > > as you can see below, my signature contains some non-ASCII characters, > and it is stored as UTF-8 (I have `(prefer-coding-system 'utf-8)` in my > .emacs.el) in my home as ~/.signature. > > Recently I started using notmuch with Emacs as the main MUA, using > message-mode to send emails. I'm *very* satisfied, BTW! > > Everything works great, except that when I "forward" an email message: > in that case, the "*unsent mail*" buffer contains the original message > within a "#mml" tag, followed by my signature, apparently appended as > binary (e.g. instead of "vivrò" I see "vivr\303\262"). When I try to > send it, I get the "Unreadable characters" prompt... > > I quickly inspected what notmuch-show-forward-message does, but AFAICT > it does very little, delegating most of the work to message-mode: but > doing the same from Gnus works ok, so I must be missing something. > > I also tried tweaking the message-default-charset, changing it from nil > to utf-8, with the very same result. > > I'm using Emacs 24.4.51 compiled a few days ago, if that matters. Could you try this patch please? diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 6e03f1e..1592ca9 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -235,9 +235,9 @@ For example, if you wanted to remove an \"unread\" tag and add a (let ((buf (generate-new-buffer (concat "*notmuch-msg-" id "*")))) (with-current-buffer buf (let ((coding-system-for-read 'no-conversion)) - (call-process notmuch-command nil t nil "show" "--format=raw" id) - ,@body) - (kill-buffer buf)))))) + (call-process notmuch-command nil t nil "show" "--format=raw" id)) + ,@body) + (kill-buffer buf))))) (defun notmuch-show-turn-on-visual-line-mode () "Enable Visual Line mode."