aboutsummaryrefslogtreecommitdiffstats
path: root/config/doom
diff options
context:
space:
mode:
authorÓscar Nájera <hi@oscarnajera.com>2021-09-13 11:03:27 +0200
committerÓscar Nájera <hi@oscarnajera.com>2021-09-13 11:03:56 +0200
commite269e488d0371834e95cd50cf622ae3ae2f214cb (patch)
tree25e0976aaabb7d5e1ae737900fbefad8fd0b17fc /config/doom
parent17260a18beacd941352d0c46b8b3fcd467eb7c47 (diff)
downloaddotfiles-e269e488d0371834e95cd50cf622ae3ae2f214cb.tar.gz
dotfiles-e269e488d0371834e95cd50cf622ae3ae2f214cb.tar.bz2
dotfiles-e269e488d0371834e95cd50cf622ae3ae2f214cb.zip
fix email set-smtp-server
Diffstat (limited to 'config/doom')
-rw-r--r--config/doom/config.org7
1 files changed, 4 insertions, 3 deletions
diff --git a/config/doom/config.org b/config/doom/config.org
index ee6dca8..c3ca10a 100644
--- a/config/doom/config.org
+++ b/config/doom/config.org
@@ -278,14 +278,15 @@ this new window.
(let* ((default-smtp-conf '("default" "mail.oscarnajera.com" 587 starttls "hi"))
(smtp-from-server-alist
'(("Oscar Najera <oscar.najera@tribe29.com>"
- "mx.tribe29.com" 587 starttls "on")
+ "mx.tribe29.com" 587 starttls "oscar.najera")
("Oscar Najera <najera.oscar@gmail.com>"
"smtp.googlemail.com" 587 starttls "najera.oscar")))
(smtp-conf (alist-get (save-restriction
(message-narrow-to-headers)
(message-fetch-field "from"))
- smtp-from-server-alist default-smtp-conf)))
- (-let [(name server port protocol user) smtp-conf]
+ smtp-from-server-alist default-smtp-conf
+ nil #'string=)))
+ (-let [(server port protocol user) smtp-conf]
(setq smtpmail-smtp-server server
smtpmail-smtp-service port
smtpmail-stream-type protocol