diff options
author | 2019-12-03 18:46:18 +0100 | |
---|---|---|
committer | 2019-12-03 18:46:18 +0100 | |
commit | e90d4579ae107f89e20669781e4bf4834e6e6b9a (patch) | |
tree | 4f5902a44ba23461505ab8ca51c2ca1a799bda8b /strconv.go | |
parent | a103309935c4a2c72770343542493d1c285d94dd (diff) | |
download | alps-e90d4579ae107f89e20669781e4bf4834e6e6b9a.tar.gz alps-e90d4579ae107f89e20669781e4bf4834e6e6b9a.tar.bz2 alps-e90d4579ae107f89e20669781e4bf4834e6e6b9a.zip |
Add basic support for multiple recipients
Diffstat (limited to 'strconv.go')
-rw-r--r-- | strconv.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -47,3 +47,11 @@ func parsePartPath(s string) ([]int, error) { } return path, nil } + +func parseAddressList(s string) []string { + l := strings.Split(s, ",") + for i, addr := range l { + l[i] = strings.TrimSpace(addr) + } + return l +} |