diff options
author | jao <jao@gnu.org> | 2023-10-05 19:03:05 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2023-10-05 19:03:05 +0100 |
commit | 1530933d8d98e6ae402d0eb627425b07783bf6cd (patch) | |
tree | ec4ed545f17177132bbafe020ac9060c05bb522e /lib/net | |
parent | 9cfab712fc9f03414a7602a3fe1332a8bffea5a5 (diff) | |
download | elibs-1530933d8d98e6ae402d0eb627425b07783bf6cd.tar.gz elibs-1530933d8d98e6ae402d0eb627425b07783bf6cd.tar.bz2 |
proton mail tweaks
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/jao-proton-utils.el | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/net/jao-proton-utils.el b/lib/net/jao-proton-utils.el index 012a2ff..62b97b3 100644 --- a/lib/net/jao-proton-utils.el +++ b/lib/net/jao-proton-utils.el @@ -1,6 +1,6 @@ ;; jao-proton-utils.el -- simple interaction with Proton mail and vpn -;; Copyright (c) 2018, 2019, 2020 Jose Antonio Ortega Ruiz +;; Copyright (c) 2018, 2019, 2020, 2023 Jose Antonio Ortega Ruiz ;; This file is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -40,7 +40,17 @@ (unless (eq major-mode 'proton-bridge-mode) (proton-bridge-mode))) -(defvar proton-vpn-mode-map) +;;;###autoload +(defun proton-bridge-sendmail-setup () + "Configure message sending for local proton bridge." + (setq send-mail-function #'smtpmail-send-it) + (setq message-send-mail-function #'smtpmail-send-it) + (setq smtpmail-servers-requiring-authorization + (regexp-opt '("localhost" "127.0.0.1"))) + (setq smtpmail-auth-supported '(plain login)) + (setq smtpmail-smtp-user "mail@jao.io") + (setq smtpmail-smtp-server "localhost") + (setq smtpmail-smtp-service 1025)) (defvar jao-proton-vpn-font-lock-keywords '("\\[.+\\]")) |