This may have been obvious to others but wasn't to me until I started digging into this:
we add the function notmuch-fcc-header-setup to message-header-setup-hook and it is this function that is calling the error and forcing the exit. In other words the problem is entirely on the notmuch side, rather than something caused by message-mode. Best wishes Mark On Fri, 10 Jul 2015, Felix Konstantin Maurer <maufl at maufl.de> wrote: > Hi, > > I had a problem where creating a reply from a message would not include > the quoted original body in the emacs notmuch client. I now found out > what the problem was. > > What would happen: > From a search in notmuch, I would open a thread. > In the read I would hit "r" or "R" to reply. > A new buffer would open, containing all headers and the "--text .." line. > The headers included an FCC header to a non existing sent folder. > I would be asked whether I want to create that folder but would decline. > Then I would be in the message buffer but without a quoted body. > > What seemed to be the problem: > In notmuch-mua-mail the message-mail function is called, which asked me > about the folder. When I declined to create the folder, it returned an > error "Message not sent". > The rest of notmuch-mua-mail was not executed anymore, and also the rest > of notmuch-mua-reply. > > I fixed it by setting notmuch-fcc-dirs to nil. > This is good for me, but might bite somebody else at some point. > > I'm quite new to emacs and don't know much elisp. I hope my findings are > correct. > Maybe somebody with more experience can confirm this problem and propose > a good fix. > > Regards > Felix > _______________________________________________ > notmuch mailing list > notmuch at notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch