diff options
| author | jao <jao@gnu.org> | 2026-08-25 21:11:27 +0100 |
|---|---|---|
| committer | jao <jao@gnu.org> | 2026-08-25 21:11:27 +0100 |
| commit | ca31697cc95491c19ff257c29bdab3b88d043b09 (patch) | |
| tree | bc14b9744c783dd1121b36ffadf21e3d7dc0bb7a /custom/jao-custom-email.el | |
| parent | dba7a443d0edb88869c4df70622543a465cf9304 (diff) | |
| download | elibs-ca31697cc95491c19ff257c29bdab3b88d043b09.tar.gz elibs-ca31697cc95491c19ff257c29bdab3b88d043b09.tar.bz2 | |
emacs 31main
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 d7dfafb..e92a17b 100644 --- a/custom/jao-custom-email.el +++ b/custom/jao-custom-email.el @@ -65,8 +65,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 @@ -166,7 +166,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"))))))) |
