diff options
author | Adnan Maolood <adnan@maolood.com> | 2023-08-27 13:47:24 -0400 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-08-28 11:56:23 +0200 |
commit | 608bc4fa7fa721ca1bef79e8d8a4630cd6124843 (patch) | |
tree | d483216634b2c0ac505de7b2e9359e0fc6aeb2d5 /config/accounts.go | |
parent | a5bc7ccf0cae608ac1e72ab4c9ebe5596eb8c988 (diff) | |
download | aerc-608bc4fa7fa721ca1bef79e8d8a4630cd6124843.tar.gz |
compose: use email domain name in Message-Id
RFC 5322 recommends using a domain name on the right-hand side of the
"@" in Message-Ids.
Since the local host domain name cannot be obtained reliably, use the
sender email domain name by default. Add a new configuration option to
maintain the old behavior.
Link: https://www.rfc-editor.org/rfc/rfc5322.html#section-3.6.4
Signed-off-by: Adnan Maolood <adnan@maolood.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config/accounts.go')
-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 a8c2b9bf..3a506e6a 100644 --- a/config/accounts.go +++ b/config/accounts.go @@ -91,6 +91,7 @@ type AccountConfig struct { FoldersSort []string `ini:"folders-sort" delim:","` AddressBookCmd string `ini:"address-book-cmd"` SendAsUTC bool `ini:"send-as-utc" default:"false"` + SendWithHostname bool `ini:"send-with-hostname" default:"false"` LocalizedRe *regexp.Regexp `ini:"subject-re-pattern" default:"(?i)^((AW|RE|SV|VS|ODP|R): ?)+"` // CheckMail |