+2000-08-29 Daiki Ueno <ueno@unixuser.org>
+
+ * wl-vars.el (wl-message-ignored-field-list): New variable.
+ (wl-message-visible-field-list): New variable.
+
+ * wl-mime.el (wl-mime-header-presentation-method): New function.
+ (wl-mime-setup): Set header-presentation-method.
+
2000-08-28 Daiki Ueno <ueno@unixuser.org>
* wl-nemacs.el (wl-draft-overload-functions): Set
(setq overviews (cdr overviews)))
(message "Not all partials found.")))))
+(defun wl-mime-header-presentation-method (entity situation)
+ (let ((mmelmo-sort-field-list wl-message-sort-field-list))
+ (mime-insert-header entity
+ wl-message-ignored-field-list
+ wl-message-visible-field-list)
+ (wl-highlight-headers)))
+
;;; Setup methods.
(defun wl-mime-setup ()
(set-alist 'mime-preview-quitting-method-alist
(set-alist 'mime-raw-representation-type-alist
'mmelmo-original-mode 'binary)
;; Sort and highlight header fields.
- (setq mmelmo-sort-field-list wl-message-sort-field-list)
- (add-hook 'mmelmo-header-inserted-hook 'wl-highlight-headers)
+ (or wl-message-ignored-field-list
+ (setq wl-message-ignored-field-list
+ mime-view-ignored-field-list))
+ (or wl-message-visible-field-list
+ (setq wl-message-visible-field-list
+ mime-view-visible-field-list))
+ (set-alist 'mime-header-presentation-method-alist
+ 'mmelmo-original-mode
+ (function wl-mime-header-presentation-method))
(add-hook 'mmelmo-entity-content-inserted-hook 'wl-highlight-body))
:type '(repeat (string :tag "Field Regexp"))
:group 'wl-pref)
+(defcustom wl-message-ignored-field-list nil
+ "All fields that match this list will be hidden in message buffer.
+Each elements are regexp of field-name."
+ :type '(repeat (string :tag "Field Regexp"))
+ :group 'wl-pref)
+
+(defcustom wl-message-visible-field-list nil
+ "All fields that match this list will be displayed in message buffer.
+Each elements are regexp of field-name."
+ :type '(repeat (string :tag "Field Regexp"))
+ :group 'wl-pref)
+
(defcustom wl-folder-window-width 20
"*Width of folder window."
:type 'integer