ssSslang <[EMAIL PROTECTED]> writes:
> Thank you, Reiner. I saw these hooks, but they're not related to mail
> address. Do you mean I should write a function to select the encoding
> according to the From header, and then bind it to the hook?
Try this:
(add-hook 'message-send-hook 'change-charset)
(defun change-charset ()
(when (message-mail-p)
(if (string-match "hotmail" (mail-fetch-field "to"))
(setq mm-coding-system-priorities
'(iso-8859-1 gbk utf-8))
(setq mm-coding-system-priorities
'(iso-8859-1 utf-8)))))
_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english