Mercurial > hg > xemacs-beta
diff lisp/gnus/message.el @ 18:d95e72db5c07 r19-15b92
Import from CVS: tag r19-15b92
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:49:43 +0200 |
parents | 0293115a14e9 |
children | 8fc7fe29b841 |
line wrap: on
line diff
--- a/lisp/gnus/message.el Mon Aug 13 08:49:21 2007 +0200 +++ b/lisp/gnus/message.el Mon Aug 13 08:49:43 2007 +0200 @@ -112,9 +112,9 @@ (defcustom message-fcc-handler-function 'message-output "*A function called to save outgoing articles. This function will be called with the name of the file to store the -article in. The default function is `rmail-output' which saves in Unix +article in. The default function is `message-output' which saves in Unix mailbox format." - :type '(radio (function-item rmail-output) + :type '(radio (function-item message-output) (function :tag "Other")) :group 'message-sending) @@ -1098,6 +1098,7 @@ (when (string-match "XEmacs\\|Lucid" emacs-version) (message-setup-toolbar)) (easy-menu-add message-mode-menu message-mode-map) + (easy-menu-add message-mode-field-menu message-mode-map) ;; Allow mail alias things. (if (fboundp 'mail-abbrevs-setup) (mail-abbrevs-setup) @@ -2141,7 +2142,13 @@ (setq file (expand-file-name file)) (unless (file-exists-p (file-name-directory file)) (make-directory (file-name-directory file) t)) - (funcall message-fcc-handler-function file))) + (if (and message-fcc-handler-function + (not (eq message-fcc-handler-function 'rmail-output))) + (funcall message-fcc-handler-function file) + (if (and (file-readable-p file) (mail-file-babyl-p file)) + (rmail-output file 1 nil t) + (let ((mail-use-rfc822 t)) + (rmail-output file 1 t t)))))) (kill-buffer (current-buffer)))))