Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions mu4e-multi.el
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,10 @@ keys of the `mu4e-multi-account-alist'."
"-a"
(catch 'exit
(let* ((from (message-fetch-field "from"))
(email (and from
(string-match thing-at-point-email-regexp from)
(match-string-no-properties 0 from))))
(emaildirty (and from
(string-match thing-at-point-email-regexp from)
(match-string-no-properties 0 from)))
(email (replace-regexp-in-string "[<>]" "" emaildirty)))
(if email
(cl-dolist (alist mu4e-multi-account-alist)
(when (string= email (cdr (assoc 'user-mail-address (cdr alist))))
Expand Down