diff options
author | Jason Cox <me@jasoncarloscox.com> | 2023-05-10 17:47:07 -0400 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-05-16 13:56:52 +0200 |
commit | 0eaf05d3fa6295e7df06793a967d3389d2a0f7d8 (patch) | |
tree | 86d1c82fc1b81b194db3d77ac0025187328c7c5e /config/compose.go | |
parent | d2ea1aac09fbf02873c3070cadef4386196bb040 (diff) | |
download | aerc-0eaf05d3fa6295e7df06793a967d3389d2a0f7d8.tar.gz |
compose: warn before sending with empty subject
Ask user whether they want to abort before sending if the subject header
is empty and they have enabled the warn-empty-subject config option.
Signed-off-by: Jason Cox <me@jasoncarloscox.com>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'config/compose.go')
-rw-r--r-- | config/compose.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/compose.go b/config/compose.go index 70533453..017b9efb 100644 --- a/config/compose.go +++ b/config/compose.go @@ -13,6 +13,7 @@ type ComposeConfig struct { AddressBookCmd string `ini:"address-book-cmd"` ReplyToSelf bool `ini:"reply-to-self" default:"true"` NoAttachmentWarning *regexp.Regexp `ini:"no-attachment-warning" parse:"ParseNoAttachmentWarning"` + EmptySubjectWarning bool `ini:"empty-subject-warning"` FilePickerCmd string `ini:"file-picker-cmd"` FormatFlowed bool `ini:"format-flowed"` } |