+2002-03-20 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
+
+ * wl.el (wl-check-environment): Don't check Message-ID when
+ `wl-insert-message-id' is nil.
+
2002-03-19 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
* wl.el (wl-check-environment): Merge examination for "@" at
(defun wl-check-environment (no-check-folder)
(unless wl-from (elmo-warning "Please set `wl-from'."))
;; Message-ID
- (let ((message-id (funcall wl-message-id-function))
- domain)
- (unless (string-match "^<\\([^@]*\\)@\\([^@]*\\)>$" message-id)
- (error
- "Check around `wl-message-id-function' to get valid Message-ID string."))
- (setq domain (match-string 2 message-id))
- (if (or (not (string-match "[^.]\\.[^.]" domain))
- (string= domain "localhost.localdomain"))
- (elmo-warning
- "Please set `wl-message-id-domain' to get valid Message-ID string.")))
+ (when wl-insert-message-id
+ (let ((message-id (funcall wl-message-id-function))
+ domain)
+ (unless (string-match "^<\\([^@]*\\)@\\([^@]*\\)>$" message-id)
+ (error
+ "Check around `wl-message-id-function' to get valid Message-ID string."))
+ (setq domain (match-string 2 message-id))
+ (if (or (not (string-match "[^.]\\.[^.]" domain))
+ (string= domain "localhost.localdomain"))
+ (elmo-warning
+ "Please set `wl-message-id-domain' to get valid Message-ID string."))))
;; folders
(when (not no-check-folder)
(let ((draft-folder (wl-folder-get-elmo-folder wl-draft-folder))