diff options
author | hrdl <git@hrdl.eu> | 2024-09-13 16:14:32 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-10-12 00:35:20 +0200 |
commit | d58065acd41ecce5ac5377a1341560dde87c5fe5 (patch) | |
tree | f6c336b03f012acbc88e460e8fd7b0f8164f6399 /config | |
parent | 6ea2b786d4eb715e580f73e210a322aac10adc9f (diff) | |
download | aerc-d58065acd41ecce5ac5377a1341560dde87c5fe5.tar.gz |
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.go | 1 |
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:","` |