:group 'message-forwarding
:type 'regexp)
-(defcustom message-make-forward-subject-function
+(defcustom message-make-forward-subject-function
'message-forward-subject-author-subject
"*A list of functions that are called to generate a subject header for forwarded messages.
The subject generated by the previous function is passed into each
:type '(choice (const :tag "unique" unique)
(const :tag "unsent" unsent)))
+(defcustom message-default-charset nil
+ "Default charset used in non-MULE XEmacsen.")
+
;;; Internal variables.
;;; Well, not really internal.
(defvar message-send-coding-system 'binary
"Coding system to encode outgoing mail.")
-(defvar message-draft-coding-system
- (cond
+(defvar message-draft-coding-system
+ (cond
((not (fboundp 'coding-system-p)) nil)
((coding-system-p 'emacs-mule) 'emacs-mule)
((coding-system-p 'escape-quoted) 'escape-quoted)
(define-key message-mode-map "\C-c\C-m\C-a" 'message-mime-attach-file)
(define-key message-mode-map "\C-c\C-m\C-e" 'message-mime-attach-external)
(define-key message-mode-map "\C-c\C-m\C-q" 'mml-quote-region)
-
+
(define-key message-mode-map "\t" 'message-tab))
(easy-menu-define
(interactive)
(kill-all-local-variables)
(set (make-local-variable 'message-reply-buffer) nil)
- (make-local-variable 'message-send-actions)
- (make-local-variable 'message-exit-actions)
+ (make-local-variable 'message-send-actions)
+ (make-local-variable 'message-exit-actions)
(make-local-variable 'message-kill-actions)
(make-local-variable 'message-postpone-actions)
(make-local-variable 'message-draft-article)
(replace-match ""))
(buffer-string)))
-
+
;;; Forwarding messages.
(defun message-forward-subject-author-subject (subject)
type (prin1-to-string file))))
(defun message-encode-message-body ()
- (let (lines multipart-p content-type-p)
+ (let ((mail-parse-charset message-default-charset)
+ (case-fold-search t)
+ lines multipart-p content-type-p)
(message-goto-body)
(save-restriction
(narrow-to-region (point) (point-max))
(insert "MIME-Version: 1.0\n")
(when lines
(insert lines))
- (setq multipart-p
+ (setq multipart-p
(re-search-backward "^Content-Type: multipart/" nil t))
(goto-char (point-max))
(setq content-type-p