From 3102ac3680ba5fcfb126894a7b7b950b07b6c735 Mon Sep 17 00:00:00 2001 From: Jeffas Date: Fri, 24 Apr 2020 11:42:22 +0200 Subject: Add recall command This command allows recalling the selected postponed email to edit in the composer. The command only allows recalling from the postpone directory. --- commands/compose/postpone.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/compose/postpone.go') diff --git a/commands/compose/postpone.go b/commands/compose/postpone.go index 44aa411..60c9df1 100644 --- a/commands/compose/postpone.go +++ b/commands/compose/postpone.go @@ -5,10 +5,10 @@ import ( "io/ioutil" "time" - "github.com/emersion/go-imap" "github.com/miolini/datacounter" "github.com/pkg/errors" + "git.sr.ht/~sircmpwn/aerc/models" "git.sr.ht/~sircmpwn/aerc/widgets" "git.sr.ht/~sircmpwn/aerc/worker/types" ) @@ -79,7 +79,7 @@ func (Postpone) Execute(aerc *widgets.Aerc, args []string) error { r, w := io.Pipe() worker.PostAction(&types.AppendMessage{ Destination: config.Postpone, - Flags: []string{imap.SeenFlag}, + Flags: []models.Flag{models.SeenFlag}, Date: time.Now(), Reader: r, Length: int(nbytes), -- cgit v1.2.3