diff options
author | Koni Marti <koni.marti@gmail.com> | 2022-06-28 23:42:07 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-07-02 17:52:49 +0200 |
commit | 9d90b70b4edfd2af81ac686e16f8bfd9b6ebfa9c (patch) | |
tree | 42078df425d0b71f3d58ff931673d0a3efd0b69a /commands/compose/attach-key.go | |
parent | ccd76e6494ba2c502c90e38e51ca9a4eb21689bb (diff) | |
download | aerc-9d90b70b4edfd2af81ac686e16f8bfd9b6ebfa9c.tar.gz |
compose: refactor attachment handling
Refactor the attachment handling process in the composer. The composer
can currently only handle attachments that are stored as files (or pgp
keys). This patch removes this limitation so that any message part can
be handled as an attachment. With this we can treat files, pgp keys and
message parts on an equal footing and it will enable us also to easily
forward attachments.
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Tested-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'commands/compose/attach-key.go')
-rw-r--r-- | commands/compose/attach-key.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/compose/attach-key.go b/commands/compose/attach-key.go index c12df446..c9212e3d 100644 --- a/commands/compose/attach-key.go +++ b/commands/compose/attach-key.go @@ -27,6 +27,5 @@ func (AttachKey) Execute(aerc *widgets.Aerc, args []string) error { composer, _ := aerc.SelectedTab().(*widgets.Composer) - composer.SetAttachKey(!composer.AttachKey()) - return nil + return composer.SetAttachKey(!composer.AttachKey()) } |