summaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-06-28 23:42:07 +0200
committerRobin Jarry <robin@jarry.cc>2022-07-02 17:52:49 +0200
commit9d90b70b4edfd2af81ac686e16f8bfd9b6ebfa9c (patch)
tree42078df425d0b71f3d58ff931673d0a3efd0b69a /commands
parentccd76e6494ba2c502c90e38e51ca9a4eb21689bb (diff)
downloadaerc-9d90b70b4edfd2af81ac686e16f8bfd9b6ebfa9c.zip
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')
-rw-r--r--commands/compose/attach-key.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/compose/attach-key.go b/commands/compose/attach-key.go
index c12df44..c9212e3 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())
}