Changing aerc.conf delimiter parsing to use only =, and not : as well

This commit is contained in:
Ben Cohen 2020-04-28 10:06:38 -04:00 committed by Reto Brunner
parent d3faf66c50
commit 63fb2b2006

View file

@ -419,12 +419,16 @@ func LoadConfigFromFile(root *string, sharedir string) (*AercConfig, error) {
return nil, err
}
filename = path.Join(*root, "aerc.conf")
file, err := ini.Load(filename)
file, err := ini.LoadSources(ini.LoadOptions{
KeyValueDelimiters: "=",
}, filename)
if err != nil {
if err := installTemplate(*root, sharedir, "aerc.conf"); err != nil {
return nil, err
}
if file, err = ini.Load(filename); err != nil {
if file, err = ini.LoadSources(ini.LoadOptions{
KeyValueDelimiters: "=",
}, filename); err != nil {
return nil, err
}
}