about summary refs log tree commit diff stats
path: root/lib/format
diff options
context:
space:
mode:
Diffstat (limited to 'lib/format')
-rw-r--r--lib/format/format.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/format/format.go b/lib/format/format.go
index 656d808..0eda7ae 100644
--- a/lib/format/format.go
+++ b/lib/format/format.go
@@ -21,6 +21,12 @@ func ParseAddress(address string) (*models.Address, error) {
 }
 
 func ParseAddressList(s string) ([]*models.Address, error) {
+	if len(s) == 0 {
+		// workaround for go versions < 1.15
+		// 1.15 returns an empty list if "" is provided as input, prior versions
+		// return an error which is not what we want
+		return nil, nil
+	}
 	parser := gomail.AddressParser{
 		&mime.WordDecoder{message.CharsetReader},
 	}