* lisp/pop3-fma.el (pop3-fma-init-message-hook): Change
message-send-hook to mime-edit-translate-hook.
+ * lisp/message.el (message-save-drafts): New function to save
+ drafts in network code.
+
1998-10-16 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus-msg.el (gnus-message-setup-hook): Replace the default
(define-key message-mode-map "\t" 'message-tab)
+ (define-key message-mode-map "\C-x\C-s" 'message-save-drafts)
(define-key message-mode-map "\C-xk" 'message-kill-buffer))
(easy-menu-define
(mm-insert-rfc822-headers charset encoding))
(mm-encode-body)))))))
+(defvar message-save-buffer " *encoding")
+(defun message-save-drafts ()
+ (interactive)
+ (if (not (get-buffer message-save-buffer))
+ (get-buffer-create message-save-buffer))
+ (let ((filename buffer-file-name)
+ (buffer (current-buffer)))
+ (set-buffer message-save-buffer)
+ (erase-buffer)
+ (insert-buffer buffer)
+ (mime-edit-translate-buffer)
+ (write-region (point-min) (point-max) filename)
+ (set-buffer buffer)
+ (set-buffer-modified-p nil)))
+
(run-hooks 'message-load-hook)
(provide 'message)