]> git.eshelyaron.com Git - emacs.git/commitdiff
Synch with Gnus trunk:
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 22 Apr 2010 23:41:53 +0000 (23:41 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 22 Apr 2010 23:41:53 +0000 (23:41 +0000)
;; I've committed this change to only the trunk by mistake, sorry,
;; but it should have been also in the branch.)
(message-generate-headers): Record insertion of optional headers as well.
Otherwise the check to prevent repeated insertion of optional headers
is a no-op.  By Andreas Seltenreich <seltenreich@gmx.de>.

lisp/gnus/ChangeLog
lisp/gnus/message.el

index 5e70b49a8620791143faffcc512cacbbf0b73481..ab1210af5b5efb69068c0b4252dd81d5ffdd8c0b 100644 (file)
@@ -1,3 +1,9 @@
+2010-04-22  Andreas Seltenreich  <seltenreich@gmx.de>
+
+       * message.el (message-generate-headers): Record insertion of optional
+       headers as well.  Otherwise the check to prevent repeated insertion of
+       optional headers is a no-op.
+
 2010-04-17  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * smime.el: Don't mention CVS.
index 27266f8aec14f59bebff9d2aa5c66ebd1a2e377f..2fe8a4d32ef5ce3941c67af21bca371db65f743a 100644 (file)
@@ -5880,6 +5880,7 @@ Headers already prepared in the buffer are not modified."
                      (if formatter
                          (funcall formatter header value)
                        (insert header-string ": " value))
+                     (push header-string message-inserted-headers)
                      (goto-char (message-fill-field))
                      ;; We check whether the value was ended by a
                      ;; newline.  If not, we insert one.