From 9d90b70b4edfd2af81ac686e16f8bfd9b6ebfa9c Mon Sep 17 00:00:00 2001 From: Koni Marti Date: Tue, 28 Jun 2022 23:42:07 +0200 Subject: 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 Tested-by: Tim Culverhouse --- commands/compose/attach-key.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'commands') 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()) } -- cgit