aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorhrdl <git@hrdl.eu>2024-09-13 16:14:32 +0200
committerRobin Jarry <robin@jarry.cc>2024-10-12 00:35:20 +0200
commitd58065acd41ecce5ac5377a1341560dde87c5fe5 (patch)
treef6c336b03f012acbc88e460e8fd7b0f8164f6399 /config
parent6ea2b786d4eb715e580f73e210a322aac10adc9f (diff)
downloadaerc-d58065acd41ecce5ac5377a1341560dde87c5fe5.tar.gz
send: allow using envelope from addressHEADdevel
Add a new boolean option in accounts.conf to use the envelope From address instead of the *from* configuration option when submitting via smtp, jmap or sendmail. Changelog-added: New `use-envelope-from` option in `accounts.conf`. Signed-off-by: hrdl <git@hrdl.eu> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config')
-rw-r--r--config/accounts.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/accounts.go b/config/accounts.go
index 35046f67..6748f8a4 100644
--- a/config/accounts.go
+++ b/config/accounts.go
@@ -102,6 +102,7 @@ type AccountConfig struct {
Default string `ini:"default" default:"INBOX"`
Postpone string `ini:"postpone" default:"Drafts"`
From *mail.Address `ini:"from"`
+ UseEnvelopeFrom bool `ini:"use-envelope-from" default:"false"`
Aliases []*mail.Address `ini:"aliases"`
Source string `ini:"source" parse:"ParseSource"`
Folders []string `ini:"folders" delim:","`