aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2011-01-11 19:53:28 -0800
committerGlenn Morris2011-01-11 19:53:28 -0800
commitae01d7ca64c60e98e2a37231c4b33271c5f78f31 (patch)
tree0b09b54c3d14d2d11df9516d9fba8426f55ea877 /lisp
parent70ba1ec80ca6b9f2c649b381e9882b5378943929 (diff)
downloademacs-ae01d7ca64c60e98e2a37231c4b33271c5f78f31.tar.gz
emacs-ae01d7ca64c60e98e2a37231c4b33271c5f78f31.zip
* message.el (message-mail): A compose-mail function should accept headers as strings.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/ChangeLog6
-rw-r--r--lisp/gnus/message.el9
2 files changed, 12 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index f8d0a1cb902..6a363c0b4f1 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12011-01-12 Glenn Morris <rgm@gnu.org>
2
3 * message.el (message-mail): A compose-mail function should
4 accept headers as strings.
5
12010-11-19 Yuri Karaban <tech@askold.net> (tiny change) 62010-11-19 Yuri Karaban <tech@askold.net> (tiny change)
2 7
3 * pop3.el (pop3-open-server): Read server greeting before starting TLS 8 * pop3.el (pop3-open-server): Read server greeting before starting TLS
@@ -13920,4 +13925,3 @@ See ChangeLog.2 for earlier changes.
13920;; add-log-time-zone-rule: t 13925;; add-log-time-zone-rule: t
13921;; End: 13926;; End:
13922 13927
13923;;; arch-tag: 3f33a3e7-090d-492b-bedd-02a1417d32b4
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 867798f9dcb..0ea0df46060 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -6493,7 +6493,13 @@ is a function used to switch to and display the mail buffer."
6493 (message-setup 6493 (message-setup
6494 (nconc 6494 (nconc
6495 `((To . ,(or to "")) (Subject . ,(or subject ""))) 6495 `((To . ,(or to "")) (Subject . ,(or subject "")))
6496 (when other-headers other-headers)) 6496 ;; C-h f compose-mail says that headers should be specified as
6497 ;; (string . value); however all the rest of message expects
6498 ;; headers to be symbols, not strings (eg message-header-format-alist).
6499 ;; http://lists.gnu.org/archive/html/emacs-devel/2011-01/msg00337.html
6500 ;; We need to convert any string input, eg from rmail-start-mail.
6501 (dolist (h other-headers other-headers)
6502 (if (stringp (car h)) (setcar h (intern (capitalize (car h)))))))
6497 yank-action send-actions continue switch-function) 6503 yank-action send-actions continue switch-function)
6498 ;; FIXME: Should return nil if failure. 6504 ;; FIXME: Should return nil if failure.
6499 t)) 6505 t))
@@ -8195,5 +8201,4 @@ Used in `message-simplify-recipients'."
8195;; coding: iso-8859-1 8201;; coding: iso-8859-1
8196;; End: 8202;; End:
8197 8203
8198;; arch-tag: 94b32cac-4504-4b6c-8181-030ebf380ee0
8199;;; message.el ends here 8204;;; message.el ends here