]> git.eshelyaron.com Git - emacs.git/commitdiff
Respect buffer-local message-fcc-handler-function
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 26 Jan 2017 20:38:40 +0000 (21:38 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 26 Jan 2017 20:38:40 +0000 (21:38 +0100)
* lisp/gnus/message.el (message-do-fcc): Copy the local
variables from the Message buffer so that local settings of
`message-fcc-handler-function' etc are respected (bug#21174).

lisp/gnus/message.el

index 7cff8b80a213ca7240cdaf7f023c0b793049f610..50d2380dd7b6e14c06ab2675fff3fe9d88b9be4b 100644 (file)
@@ -5399,6 +5399,7 @@ Otherwise, generate and save a value for `canlock-password' first."
     (when file
       (with-temp-buffer
        (insert-buffer-substring buf)
+       (message-clone-locals buf)
        (message-encode-message-body)
        (save-restriction
          (message-narrow-to-headers)