* 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-address.el (wl-address-specials-regexp): Eliminated.
(wl-address-quote-specials): Rewrite.
+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-address.el (wl-address-specials-regexp): Eliminated.
+ (wl-address-quote-specials): Rewrite.
+
2001-09-17 Reuben Thomas <rrt@dcs.gla.ac.uk>
* wl-addrmgr.el (wl-fldmgr-delete): Fix docstring.
(completing-read "To: " cl)
(read-string "To: "))))
-(defconst wl-address-specials-regexp "[]\"(),.:;<>@[\\]")
-
(defun wl-address-quote-specials (word)
"Make quoted string of WORD if needed."
- (if (string-match wl-address-specials-regexp word)
- (prin1-to-string word)
- word))
+ (let ((lal (std11-lexical-analyze word)))
+ (if (or (assq 'specials lal)
+ (assq 'domain-literal lal))
+ (prin1-to-string word)
+ word)))
(defun wl-address-make-completion-list (address-list)
(let (addr-tuple cl)
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)
(defcustom wl-user-mail-address-list nil
:type '(repeat string)
:group 'wl)
-(defcustom wl-organization nil
+(defcustom wl-organization (getenv "ORGANIZATION")
"Organization name."
:type '(choice (const :tag "none" nil)
string)
"Wanderlust" nil
(eval-when-compile
(product-version (product-find 'elmo-version))) ; equals to ELMO version.
- "Twist And Shout"))
+ "Upside Down"))
;; set version-string
(product-version-as-string 'wl-version)
(unless (featurep 'mime-setup)
(require 'mime-setup))
(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