diff options
Diffstat (limited to 'custom/jao-custom-email.el')
-rw-r--r-- | custom/jao-custom-email.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/custom/jao-custom-email.el b/custom/jao-custom-email.el index a3d1a92..dd898ad 100644 --- a/custom/jao-custom-email.el +++ b/custom/jao-custom-email.el @@ -69,8 +69,8 @@ (defun jao-message-insert-bcc () (when jao-notmuch-enabled (let ((f (or (message-fetch-field "From") ""))) - (when-let (b (seq-some (lambda (x) (when (string-match-p (car x) f) (cdr x))) - jao-message--bcc-alist)) + (when-let* ((b (seq-some (lambda (x) (when (string-match-p (car x) f) (cdr x))) + jao-message--bcc-alist))) (insert "Bcc: " b "\n"))))) ;; (when jao-notmuch-enabled @@ -170,7 +170,7 @@ (save-excursion (save-restriction (message-narrow-to-headers) - (when-let ((to (message-fetch-field "To"))) + (when-let* ((to (message-fetch-field "To"))) (when (string-match-p jao-mails-regexp to) (unless (y-or-n-p "Message is addressed to yourself. Continue?") (error "Message not sent"))))))) |