Skip to content

Commit

Permalink
tweak(mu4e): take account of multiple emails in auto BCC
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jun 20, 2023
1 parent 52d72de commit 5587715
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/extras/me-mu4e-extras.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
:type '(repeat string))

(defcustom +mu4e-auto-bcc-address nil
"BCC address."
"Auto add this/these addresses as BCC."
:group 'minemacs-mu4e
:type 'string)
:type '(choice string (repeat string)))

;; Some of these functions are adapted from Doom Emacs

Expand Down Expand Up @@ -185,7 +185,7 @@ used later for Gmail specific actions."
(defun +mu4e--auto-bcc-h ()
"Add BCC address from `+mu4e-auto-bcc-address'."
(when +mu4e-auto-bcc-address
(save-excursion (message-add-header (format "BCC: %s\n" +mu4e-auto-bcc-address)))))
(save-excursion (message-add-header (format "BCC: %s\n" (string-join (ensure-list +mu4e-auto-bcc-address) ", "))))))

(defun +mu4e--set-from-address-h ()
"If the user defines multiple `+mu4e-account-aliases' for email aliases
Expand Down

0 comments on commit 5587715

Please sign in to comment.