diff options
author | Reto Brunner <reto@labrat.space> | 2020-11-10 20:27:30 +0100 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2020-11-14 15:40:13 +0100 |
commit | 20ec2c8eeb2e071f28358814935a0f56672a9f49 (patch) | |
tree | 501b43a39a4152872bb6f08221da9c37fc75559c /commands/compose/postpone.go | |
parent | 3ad3a5ede07c1248ae8176bdc19a623731c64056 (diff) | |
download | aerc-20ec2c8eeb2e071f28358814935a0f56672a9f49.tar.gz |
compose: use a proper header instead of a string map
Prior to this commit, the composer was based on a map[string]string.
While this approach was very versatile, it lead to a constant encoding / decoding
of addresses and other headers.
This commit switches to a different model, where the composer is based on a header.
Commands which want to interact with it can simply set some defaults they would
like to have. Users can overwrite them however they like.
In order to get access to the functions generating / getting the msgid go-message
was upgraded.
Diffstat (limited to 'commands/compose/postpone.go')
-rw-r--r-- | commands/compose/postpone.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/compose/postpone.go b/commands/compose/postpone.go index 60c9df1a..365b683f 100644 --- a/commands/compose/postpone.go +++ b/commands/compose/postpone.go @@ -40,7 +40,7 @@ func (Postpone) Execute(aerc *widgets.Aerc, args []string) error { aerc.Logger().Println("Postponing mail") - header, _, err := composer.PrepareHeader() + header, err := composer.PrepareHeader() if err != nil { return errors.Wrap(err, "PrepareHeader") } |