;; Renamed: 1993/06/03 to tiny-mime.el
;; Renamed: 1995/10/03 from tiny-mime.el (split off encoder)
;; Renamed: 1997/02/22 from tm-ew-d.el
-;; Version: $Revision: 0.2 $
+;; Version: $Revision: 0.3 $
;; Keywords: encoded-word, MIME, multilingual, header, mail, news
;; This file is part of SEMI (SEMI is Emacs MIME Interfaces).
;;;
(defconst eword-decode-RCS-ID
- "$Id: eword-decode.el,v 0.2 1997-02-24 02:19:57 tmorioka Exp $")
+ "$Id: eword-decode.el,v 0.3 1997-02-24 02:26:02 tmorioka Exp $")
(defconst eword-decode-version (get-version-string eword-decode-RCS-ID))
;;; @ for message header
;;;
-(defun eword-decode-header ()
- "Decode MIME encoded-words in header fields."
+(defun eword-decode-header (&optional separator)
+ "Decode MIME encoded-words in header fields.
+If SEPARATOR is not nil, it is used as header separator."
(interactive "*")
(save-excursion
(save-restriction
- (narrow-to-region (goto-char (point-min))
- (progn (re-search-forward "^$" nil t) (point)))
+ (std11-narrow-to-header separator)
(eword-decode-region (point-min) (point-max) t)
)))