From 80ffb3845bfad3017da0639eb78b5cede5aa049f Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 10 Feb 2019 14:01:50 +0100 Subject: [PATCH] [Mail] Ensure SMTP related variables are loaded before binding them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I do not know whether this is really necessary, but since ‘let’ should bind variables like ‘smtpmail-smtp-server’ and the like dynamically, it feels better to have them loaded before binding them. --- site-lisp/db-mail.el | 1 + 1 file changed, 1 insertion(+) diff --git a/site-lisp/db-mail.el b/site-lisp/db-mail.el index 96b0ca8..0896214 100644 --- a/site-lisp/db-mail.el +++ b/site-lisp/db-mail.el @@ -119,6 +119,7 @@ will also be recognized when sending mail." "Choose smtp-settings dynamically, based on the From: header entry of the current mail." (require 'mail-extr) + (require 'smtpmail) ; to have the globals bound below by let (let* ((from (or (save-restriction (message-narrow-to-headers) (mail-fetch-field "From"))