From 7cebca38e004b3ef79e90612ed1d179b9fa80c74 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 2 May 1999 07:11:05 +0000 Subject: [PATCH] * (mime-edit-use-long-mime-charset-comment): Use `defvar' to define. * mime-edit.el (mime-edit-define-charset): Check `mime-edit-use-long-mime-charset-comment'. --- ChangeLog | 7 +++++++ mime-edit.el | 17 +++++------------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 07a33d0..7acf445 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +1999-05-02 Tanaka Akira + + * (mime-edit-use-long-mime-charset-comment): Use `defvar' to define. + + * mime-edit.el (mime-edit-define-charset): Check + `mime-edit-use-long-mime-charset-comment'. + 1999-04-30 Shigeru OKUMURA * mime-edit.el (mime-edit-use-long-mime-charset-comment): diff --git a/mime-edit.el b/mime-edit.el index 0679340..3a5ec24 100644 --- a/mime-edit.el +++ b/mime-edit.el @@ -502,19 +502,12 @@ If encoding is nil, it is determined from its contents." "A string formatted version of mime-transfer-level") (make-variable-buffer-local 'mime-transfer-level-string) -;; -;; some MUA reject long comment -;; +(defvar mime-edit-use-long-mime-charset-comment t + "*Use charset comment") -(if (and (boundp 'mime-edit-use-long-mime-charset-comment) - mime-edit-use-long-mime-charset-comment) - (progn - (put 'iso-2022-jp-2 'mime-charset-comment "RFC1554") - (put 'iso-2022-jp 'mime-charset-comment "RFC1468 with trivial bugfix") - ) - ) +(put 'iso-2022-jp-2 'mime-charset-comment "RFC1554") +(put 'iso-2022-jp 'mime-charset-comment "RFC1468 with trivial bugfix") - ;;; @@ about content transfer encoding (defvar mime-content-transfer-encoding-priority-list @@ -1382,7 +1375,7 @@ Optional argument ENCODING specifies an encoding method such as base64." (mime-edit-get-contype tag) "charset" (let ((comment (get charset 'mime-charset-comment))) - (if comment + (if (and mime-edit-use-long-mime-charset-comment comment) (concat (upcase (symbol-name charset)) " (" comment ")") (upcase (symbol-name charset))))) (mime-edit-get-encoding tag))) -- 1.7.10.4