aboutsummaryrefslogtreecommitdiffstats
path: root/config/accounts.go
diff options
context:
space:
mode:
authorMarcin Serwin <marcin.serwin0@protonmail.com>2023-03-14 10:42:49 +0000
committerRobin Jarry <robin@jarry.cc>2023-03-26 20:44:56 +0200
commitc09b17a930cc58c13dd5dd2ba8e7a261833eb05a (patch)
tree3d876bd91e3d0c463e8bb79129dfeb09cef16fd2 /config/accounts.go
parent6d59ad3f02bc97c0b5040f59259fa8450702a2e2 (diff)
downloadaerc-c09b17a930cc58c13dd5dd2ba8e7a261833eb05a.tar.gz
smtp: replace smtp-starttls with schema option
The "smtp-starttls" options is now ignored in favor of more detailed schema specification, similarly to IMAP. Fixes: https://todo.sr.ht/~rjarry/aerc/149 Signed-off-by: Marcin Serwin <marcin.serwin0@protonmail.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config/accounts.go')
-rw-r--r--config/accounts.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/accounts.go b/config/accounts.go
index 8aadb329..bacd7e39 100644
--- a/config/accounts.go
+++ b/config/accounts.go
@@ -161,6 +161,16 @@ func parseAccounts(root string, accts []string) error {
account.Params[key] = val
}
}
+ if _, ok := account.Params["smtp-starttls"]; ok {
+ Warnings = append(Warnings, Warning{
+ Title: "accounts.conf: smtp-starttls is deprecated",
+ Body: `
+SMTP connections now use STARTTLS by default and the smtp-starttls setting is ignored.
+
+If you want to disable STARTTLS, append +insecure to the schema.
+`,
+ })
+ }
if account.Source == "" {
return fmt.Errorf("Expected source for account %s", _sec)
}