diff options
author | Moritz Poldrack <git@moritz.sh> | 2022-04-05 23:49:13 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-04-06 15:37:13 +0200 |
commit | 3c08b8e6a903aec409871aee38002173c73109ee (patch) | |
tree | 497435c43e22ba8fffe367f1d615d019c13bb740 /commands/compose | |
parent | 7fe7fe4ea84508cca1f058af6f15c5a4b8fab26d (diff) | |
download | aerc-3c08b8e6a903aec409871aee38002173c73109ee.tar.gz |
header: remove trailing colon in header field
With this commit trailing colons in the :header command's field are
removed to prevent double-colon-headers from being sent.
Signed-off-by: Moritz Poldrack <git@moritz.sh>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/compose')
-rw-r--r-- | commands/compose/header.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/compose/header.go b/commands/compose/header.go index 949698e5..59b1caac 100644 --- a/commands/compose/header.go +++ b/commands/compose/header.go @@ -56,6 +56,8 @@ func (Header) Execute(aerc *widgets.Aerc, args []string) error { composer, _ := aerc.SelectedTab().(*widgets.Composer) + args[optind] = strings.TrimRight(args[optind], ":") + value := strings.Join(args[optind+1:], " ") if !force { |