summaryrefslogtreecommitdiffhomepage
path: root/lib/net/jao-proton-utils.el
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/jao-proton-utils.el')
-rw-r--r--lib/net/jao-proton-utils.el14
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 '("\\[.+\\]"))