From 1530933d8d98e6ae402d0eb627425b07783bf6cd Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 5 Oct 2023 19:03:05 +0100 Subject: proton mail tweaks --- lib/net/jao-proton-utils.el | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'lib/net') 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 '("\\[.+\\]")) -- cgit v1.2.3