2004-01-03 Yoichi NAKAYAMA <yoichi@geiin.org>
* wl-address.el (wl-address-delete): Avoid mis-deleting.
+ * wl-address.el (wl-address-add-or-change): Don't add empty
+ address.
2004-01-01 TAKAHASHI Kaoru <kaoru@kaisei.org>
the-realname)))
(when change-address
(setq new-addr (read-from-minibuffer "E-Mail: " address))
- (if (and (not (string= address new-addr))
- (assoc new-addr wl-address-list))
- (error "'%s' already exists" new-addr)))
+ (cond
+ ((or (not (stringp address))
+ (string-match "^[ \t]*$" address))
+ (error "empty address"))
+ ((and (not (string= address new-addr))
+ (assoc new-addr wl-address-list))
+ (error "'%s' already exists" new-addr))
+ (t
+ ;; do nothing
+ )))
;; writing to ~/.address
(let ((output-coding-system
(mime-charset-to-coding-system wl-mime-charset)))