* wl-vars.el (wl-from): Set default value as nil.
(wl-organization): Sed default value as ORGANIZATION environment variable.
* wl-draft.el (wl-smtp-extension-bind): Check value of wl-smtp-connection-type.
* wl-acap.el (wl-acap-init): If ACAP service is not found, cause an error.
+2001-09-18 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * wl.el (wl-check-environment): If `wl-from' is nil, use default value.
+
+ * wl-vars.el (wl-from): Set default value as nil.
+ (wl-organization): Sed default value as ORGANIZATION environment
+ variable.
+
+ * wl-draft.el (wl-smtp-extension-bind): Check value of
+ wl-smtp-connection-type.
+
+ * wl-acap.el (wl-acap-init): If ACAP service is not found, cause an
+ error.
+
2001-09-18 TAKAHASHI Kaoru <kaoru@kaisei.org>
* Version number is increased to 2.7.4.
"A candidate for `wl-folder-init-function'."
(let ((service (wl-acap-find-acap-service))
proc entries settings folder-top type)
+ (unless (car service) (error "No ACAP service found."))
(setq proc (acap-open (car service)
wl-acap-user
(upcase (symbol-name wl-acap-authenticate-type))
wl-smtp-authenticate-type
(list wl-smtp-authenticate-type)))))
(smtp-use-sasl (and smtp-sasl-mechanisms t))
- (smtp-use-starttls wl-smtp-connection-type)
+ (smtp-use-starttls (eq wl-smtp-connection-type 'starttls))
smtp-sasl-user-name smtp-sasl-properties sasl-read-passphrase)
(if (and (string= (car smtp-sasl-mechanisms) "DIGEST-MD5")
;; sendmail bug?
(defvar wl-use-semi (module-installed-p 'mime-view) ; If nil, use tm.
"*Use SEMI or not.")
-(defcustom wl-from (if (boundp 'user-mail-address)
- user-mail-address)
+(defcustom wl-from nil
"*From string used in draft."
- :type 'string
+ :type '(choice (const :tag "Use default value" nil)
+ string)
:group 'wl
:group 'wl-setting)
:group 'wl
:group 'wl-setting)
-(defcustom wl-organization nil
+(defcustom wl-organization (getenv "ORGANIZATION")
"Organization name."
:type '(choice (const :tag "none" nil)
string)
(defun wl-check-environment (no-check-folder)
(unless wl-from
- (error "Please set `wl-from'"))
+ (setq wl-from
+ (concat (wl-address-quote-specials (user-full-name))
+ " <" user-mail-address ">")))
;; Message-ID
(unless (string-match "[^.]\\.[^.]" (or wl-message-id-domain
(if wl-local-domain