From 0eaf05d3fa6295e7df06793a967d3389d2a0f7d8 Mon Sep 17 00:00:00 2001 From: Jason Cox Date: Wed, 10 May 2023 17:47:07 -0400 Subject: 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 Acked-by: Tim Culverhouse --- config/compose.go | 1 + 1 file changed, 1 insertion(+) (limited to 'config/compose.go') 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"` } -- cgit