field name information.
(setq gnus-unstructured-field-decoder
- (lambda (string)
- (let ((ew-ignore-76bytes-limit t))
- (ew-cut-cr-lf (ew-decode-field "Subject" (ew-lf-to-crlf string))))))
+ (lambda (string)
+ (if (fboundp 'ew-decode-field)
+ (let ((ew-ignore-76bytes-limit t))
+ (ew-cut-cr-lf (ew-decode-field "Subject" (ew-lf-to-crlf string))))
+ (eword-decode-and-unfold-structured-field string))))
(setq gnus-structured-field-decoder
- (lambda (string)
- (let ((ew-ignore-76bytes-limit t))
- (ew-cut-cr-lf (ew-decode-field "From" (ew-lf-to-crlf string))))))
+ (lambda (string)
+ (if (fboundp 'ew-decode-field)
+ (let ((ew-ignore-76bytes-limit t))
+ (ew-cut-cr-lf (ew-decode-field "From" (ew-lf-to-crlf string) 'ew-cut-cr-lf)))
+ (eword-decode-unstructured-field-body (std11-unfold-string string) 'must-unfold))))
Otherwise it decodes non-ASCII bit patterns as the
default-mime-charset."
(interactive "*r")
- (rotate-memo args-eword-decode-region
- (list start end (buffer-substring start end) unfolding must-unfold code-conversion))
+;; (rotate-memo args-eword-decode-region
+;; (list start end (buffer-substring start end) unfolding must-unfold code-conversion))
(save-excursion
(save-restriction
(narrow-to-region start end)
default-mime-charset.
If SEPARATOR is not nil, it is used as header separator."
(interactive "*")
- (rotate-memo args-eword-decode-header
- (list code-conversion))
+;; (rotate-memo args-eword-decode-header (list code-conversion))
(unless code-conversion
(message "eword-decode-header is called with no code-conversion"))
(if (and code-conversion
(save-excursion
(save-restriction
(std11-narrow-to-header separator)
- (rotate-memo header-eword-decode-header (buffer-substring (point-min) (point-max)))
+;; (rotate-memo header-eword-decode-header (buffer-substring (point-min) (point-max)))
(if code-conversion
(let (beg p end field-name field-body len)
(goto-char (point-min))
If MUST-UNFOLD is non-nil, it unfolds and eliminates line-breaks even
if there are in decoded encoded-words (generated by bad manner MUA
such as a version of Net$cape)."
- (rotate-memo args-eword-decode-and-fold-structured-field
- (list string start-column max-column must-unfold))
+;; (rotate-memo args-eword-decode-and-fold-structured-field
+;; (list string start-column max-column must-unfold))
(or max-column
(setq max-column fill-column))
(let* ((ew-decode-field-default-syntax '(ew-scan-unibyte-std11))
If an encoded-word is broken or your emacs implementation can not
decode the charset included in it, it is not decoded."
- (rotate-memo args-eword-decode-and-unfold-structured-field
- (list string))
+;; (rotate-memo args-eword-decode-and-unfold-structured-field (list string))
(let* ((ew-decode-field-default-syntax '(ew-scan-unibyte-std11))
(decoded (ew-decode-field ""
(ew-lf-crlf-to-crlf string)
If MUST-UNFOLD is non-nil, it unfolds and eliminates line-breaks even
if there are in decoded encoded-words (generated by bad manner MUA
such as a version of Net$cape)."
- (rotate-memo args-eword-decode-structured-field-body
- (list string must-unfold start-column max-column))
+;; (rotate-memo args-eword-decode-structured-field-body
+;; (list string must-unfold start-column max-column))
(if start-column
;; fold with max-column (folding is not implemented.)
(let* ((ew-decode-field-default-syntax '(ew-scan-unibyte-std11))
If MUST-UNFOLD is non-nil, it unfolds and eliminates line-breaks even
if there are in decoded encoded-words (generated by bad manner MUA
such as a version of Net$cape)."
- (rotate-memo args-eword-decode-unstructured-field-body
- (list string must-unfold))
+;; (rotate-memo args-eword-decode-unstructured-field-body
+;; (list string must-unfold))
(let ((decoded (ew-decode-field ""
(ew-lf-crlf-to-crlf string)
(if must-unfold 'ew-cut-cr-lf))))
It decodes non us-ascii characters in FULL-NAME encoded as
encoded-words or invalid \"raw\" string. \"Raw\" non us-ascii
characters are regarded as variable `default-mime-charset'."
- (rotate-memo args-eword-extract-address-components
- (list string))
+;; (rotate-memo args-eword-extract-address-components (list string))
(let* ((structure (car (std11-parse-address
(eword-lexical-analyze
(std11-unfold-string string) 'must-unfold))))