+2000-04-20 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * wl-vars.el (wl-ignored-forwarded-headers): New user option.
+
+ * wl-draft.el (wl-draft-insert-current-message): Delete useless
+ fields from the forwarding message.
+ (wl-draft-yank-from-mail-reply-buffer): Allow the optional argument
+ `ignored-fields'.
+
2000-04-20 Yuuichi Teranishi <teranisi@gohome.org>
* wl-mime.el (wl-message-request-partial):
(setq wl-draft-reply-buffer buf))
(run-hooks 'wl-reply-hook))
-(defun wl-draft-yank-from-mail-reply-buffer (decode-it)
+(defun wl-draft-yank-from-mail-reply-buffer (decode-it
+ &optional ignored-fields)
(interactive)
(save-restriction
(current-buffer)
wl-mime-charset))
(buffer-substring-no-properties
(point-min) (point-max))))
+ (when ignored-fields
+ (goto-char (point-min))
+ (wl-draft-delete-fields ignored-fields))
(goto-char (point-max))
(push-mark)
(goto-char (point-min)))
(set-buffer mail-reply-buffer)
(buffer-size)))
(error "No current message")
- (wl-draft-yank-from-mail-reply-buffer nil))))
+ (wl-draft-yank-from-mail-reply-buffer nil
+ wl-ignored-forwarded-headers))))
(defun wl-draft-insert-get-message (dummy)
(let ((fld (completing-read
:type 'regexp
:group 'wl-draft)
+(defcustom wl-ignored-forwarded-headers "\\(received\\|return-path\\|x-uidl\\)"
+ "*All headers that match this regexp will be deleted when forwarding a message."
+ :type 'regexp
+ :group 'wl-draft)
+
(defcustom wl-ignored-resent-headers "\\(return-receipt\\|[bdf]cc\\)"
"*All headers that match this regexp will be deleted when resending a message."
:type 'regexp