+2002-05-30 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * bbdb-wl.el (bbdb-wl-canonicalize-full-name-function): New variable.
+ (bbdb-wl-canonicalize-spaces-and-dots): New function.
+ (bbdb-wl-get-addresses-1): Use bbdb-wl-canonicalize-full-name-function.
+ (bbdb-wl-get-addresses-2): Ditto.
+
2002-05-20 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
* im-wl.el: wl-draft-send-func -> wl-draft-send-function
(defvar bbdb-wl-folder-regexp nil)
(defvar bbdb-wl-ignore-folder-regexp nil)
+(defvar bbdb-wl-canonicalize-full-name-function
+ #'bbdb-wl-canonicalize-spaces-and-dots
+ "Way to canonicalize full name.")
+
+(defun bbdb-wl-canonicalize-spaces-and-dots (string)
+ (while (string-match " +\\|[\f\t\n\r\v]+\\|\\." string)
+ (setq string (replace-match " " nil t string)))
+ string)
+
;;;###autoload
(defun bbdb-wl-setup ()
(add-hook 'wl-message-redisplay-hook 'bbdb-wl-get-update-record)
(std11-unfold-string header)))
(while (and (setq structure (car structures))
(eq (car structure) 'mailbox))
- (setq fn (std11-full-name-string structure)
+ (setq fn (funcall bbdb-wl-canonicalize-full-name-function
+ (std11-full-name-string structure))
fn (and fn
(with-temp-buffer ; to keep raw buffer unibyte.
(elmo-set-buffer-multibyte
(std11-unfold-string header-content)))
(while (and (setq structure (car structures))
(eq (car structure) 'mailbox))
- (setq fn (std11-full-name-string structure)
+ (setq fn (funcall bbdb-wl-canonicalize-full-name-function
+ (std11-full-name-string structure))
fn (and fn
(with-temp-buffer ; to keep raw buffer unibyte.
(elmo-set-buffer-multibyte