address by " <" and ">" if associated realname is "".
* wl-addrmgr.el (wl-addrmgr-mark-check): Ditto.
This is against the promblem with group list in .addresses pointed
out by Tomotaka SUWA <cooper@saitama.fujimic.fujisankei-g.co.jp>.
+2002-01-20 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
+
+ * wl-address.el (wl-address-make-completion-list): Do not enclose
+ address by " <" and ">" if associated realname is "".
+ * wl-addrmgr.el (wl-addrmgr-mark-check): Ditto.
+ This is against the promblem with group list in .addresses pointed
+ out by Tomotaka SUWA <cooper@saitama.fujimic.fujisankei-g.co.jp>.
+
2002-01-19 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
* wl-draft.el (wl-draft-write-sendlog): The first argument of
(while address-list
(setq addr-tuple (car address-list))
(setq cl
- (cons
- (cons (nth 0 addr-tuple)
- (concat
- (wl-address-quote-specials
- (nth 2 addr-tuple)) " <"(nth 0 addr-tuple)">"))
- cl))
+ (cons
+ (cons (nth 0 addr-tuple)
+ (if (string= (nth 2 addr-tuple) "")
+ (nth 0 addr-tuple)
+ (concat
+ (wl-address-quote-specials
+ (nth 2 addr-tuple)) " <"(nth 0 addr-tuple)">")))
+ cl))
;; nickname completion.
(unless (or (equal (nth 1 addr-tuple) (nth 0 addr-tuple))
;; already exists
(setq cl
(cons
(cons (nth 1 addr-tuple)
- (concat
- (wl-address-quote-specials
- (nth 2 addr-tuple)) " <"(nth 0 addr-tuple)">"))
+ (if (string= (nth 2 addr-tuple) "")
+ (nth 0 addr-tuple)
+ (concat
+ (wl-address-quote-specials
+ (nth 2 addr-tuple)) " <"(nth 0 addr-tuple)">")))
cl)))
(setq address-list (cdr address-list)))
cl))
(setq realname (nth 2 (wl-addrmgr-address-entry)))
(cond
((string= mark "To:")
- (setq to-list (cons (if full (concat
- (wl-address-quote-specials realname)
- " <" addr">")
- addr)
- to-list)))
+ (setq to-list (cons
+ (if (and full (not (string= realname "")))
+ (concat
+ (wl-address-quote-specials realname)
+ " <" addr">")
+ addr)
+ to-list)))
((string= mark "Cc:")
- (setq cc-list (cons (if full (concat
- (wl-address-quote-specials realname)
- " <" addr">")
- addr)
- cc-list)))
+ (setq cc-list (cons
+ (if (and full (not (string= realname "")))
+ (concat
+ (wl-address-quote-specials realname)
+ " <" addr">")
+ addr)
+ cc-list)))
((string= mark "Bcc:")
- (setq bcc-list (cons (if full (concat
- (wl-address-quote-specials realname)
- " <" addr">")
- addr)
- bcc-list)))))
+ (setq bcc-list (cons
+ (if (and full (not (string= realname "")))
+ (concat
+ (wl-address-quote-specials realname)
+ " <" addr">")
+ addr)
+ bcc-list)))))
(list to-list cc-list bcc-list))))
(defun wl-addrmgr-apply-exec (rcpt)