]> git.notmuchmail.org Git - notmuch/commit
emacs: Fix the References header in reply
authorAdam Wolfe Gordon <awg+notmuch@xvx.ca>
Sun, 1 Apr 2012 15:24:23 +0000 (09:24 -0600)
committerDavid Bremner <bremner@debian.org>
Mon, 2 Apr 2012 20:47:04 +0000 (17:47 -0300)
commite4844fafec0dd789fe304b412c76f594850b833e
tree489a8cc3bf3513f22ffa2b8d1b099437d3a8a980
parentbc531924e0463719d7572ed324edb002cfc1c70f
emacs: Fix the References header in reply

In the new reply code, the References header gets inserted by
message.el using a function called message-shorten-references. Unlike
all the other header-inserting functions, it doesn't put a newline
after the header, causing the next header to end up on the same
line. In our case, this header happened to be User-Agent, so it's hard
to notice. This is probably a bug in message.el, but we need to work
around it.

This fixes the problem by wrapping message-shorten-references in a
function that inserts a newline after if necessary. This should
protect against the message.el bug being fixed in the future.
emacs/notmuch-mua.el
test/emacs