;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;; Created: 1994/08/21 renamed from mime.el
;; Renamed: 1997/2/21 from tm-edit.el
-;; Version: $Revision: 0.68 $
+;; Version: $Revision: 0.69 $
;; Keywords: MIME, multimedia, multilingual, mail, news
;; This file is part of SEMI (SEMI is Emacs MIME Interfaces).
;;;
(defconst mime-edit-RCS-ID
- "$Id: mime-edit.el,v 0.68 1997-03-07 13:41:46 morioka Exp $")
+ "$Id: mime-edit.el,v 0.69 1997-03-07 13:52:44 morioka Exp $")
(defconst mime-edit-version (get-version-string mime-edit-RCS-ID))
;;; @ edit again
;;;
+(defvar mime-edit-again-ignored-field-regexp
+ (concat "^\\(" "Content-.*\\|Mime-Version"
+ (if mime-edit-insert-x-emacs-field "\\|X-Emacs")
+ "\\):")
+ "Regexp for deleted header fields when `mime-edit-again' is called.")
+
(defun mime-editor::edit-again (code-conversion)
(save-excursion
(goto-char (point-min))
(save-restriction
(std11-narrow-to-header)
(goto-char (point-min))
- (while (re-search-forward
- "^\\(Content-.*\\|Mime-Version\\):" nil t)
+ (while (re-search-forward mime-edit-again-ignored-field-regexp nil t)
(delete-region (match-beginning 0) (1+ (std11-field-end)))
))
(or no-separator