~sircmpwn/aerc

676fed9e2265a40f81cb9f2a083809ff7bf32772 — Andrew Jeffery 7 months ago a9ae91c
Check account's from value is not empty

This leads to a nasty 'mail: no address' message for each email if left
empty so the user really should enter it.
1 files changed, 3 insertions(+), 0 deletions(-)

M config/config.go
M config/config.go => config/config.go +3 -0
@@ 216,6 216,9 @@ func loadAccountConfig(path string) ([]AccountConfig, error) {
		if account.Source == "" {
			return nil, fmt.Errorf("Expected source for account %s", _sec)
		}
		if account.From == "" {
			return nil, fmt.Errorf("Expected from for account %s", _sec)
		}

		source, err := parseCredential(account.Source, account.SourceCredCmd)
		if err != nil {