2002-03-24 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
+ * wl-vars.el (wl-draft-additional-header-alist): New variable.
+ * wl-draft.el (wl-draft-create-contents): Add it after the default
+ headers.
+
* wl-draft.el (wl-draft-create-contents): For the case of
(symbol-or-string . function) insert header only when the function
returns string value.
(append header-alist (list (cons 'Subject ""))))))
(setq header-alist (append header-alist
(wl-draft-default-headers)
+ wl-draft-additional-header-alist
(if body (list "" body))))
(wl-draft-create-contents header-alist)
(if edit-again
(symbol . nil) ;; insert nothing
(function . (arg1 arg2 ..)) ;; call function with argument
nil ;; insert nothing
+ )
"
(unless (eq major-mode 'wl-draft-mode)
(error "wl-draft-create-header must be use in wl-draft-mode."))
:group 'wl
:group 'wl-setting)
+(defcustom wl-draft-additional-header-alist nil
+ "*Additional headers in the draft."
+ :type '(repeat (cons (symbol :tag "Field Name")
+ (choice (string :tag "String")
+ (function :tag "Function")))))
+
(defcustom wl-draft-add-in-reply-to t
"*If non-nil, message-id of the cited message is inserted to the
in-reply-to field of the current draft."