(defun eweouz-add-sender-wl ()
"Add sender of current message"
(interactive)
- (save-excursion
- (set-buffer wl-message-buffer)
- (let* ((from (std11-extract-address-components (std11-field-body "From")))
- (record (list (cons 'email (cadr from))
- (cons 'name (car from)))))
- (eweouz-do-add record))))
+ (wl-summary-set-message-buffer-or-redisplay)
+ (set-buffer (wl-message-get-original-buffer))
+ (let* ((from (std11-extract-address-components (std11-field-body "From")))
+ (name (cadr from))
+ (email (car from))
+ (record (cons name email)))
+ (eweouz-do-add record)))
(require 'vcard)
(provide 'eweouz)