(defun eweouz-add-sender ()
"Add sender of current message"
(interactive)
-
(save-excursion
(set-buffer gnus-article-buffer)
- (let* ((from (mail-header-parse-address (gnus-fetch-field "From")))
- (record (list (cons 'email (car from))
- (cons 'name (cdr from)))))
- (eweouz-do-add record))))
+ (eweouz-do-add (mail-header-parse-address (gnus-fetch-field "From")))))
(defun eweouz-do-add (record)
(interactive)
- (let* ((name (cdr (assoc 'name record)))
- (email (cdr (assoc 'email record))))
+ (let* ((name (car record))
+ (email (cdr record)))
+ (message (format "%s" record))
(call-process eweouz-write-path nil nil nil "--id" "new" "--full-name" name
"--emails" email)))