diff options
author | Jeffas <dev@jeffas.io> | 2020-04-24 11:42:22 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-04-24 12:59:21 -0400 |
commit | 3102ac3680ba5fcfb126894a7b7b950b07b6c735 (patch) | |
tree | c017e43203fcadf978fd919222628581f6b11b1b /commands/compose/postpone.go | |
parent | 7f033278eb3afc3b9ae2dca28efe8d4a3514d14a (diff) | |
download | aerc-3102ac3680ba5fcfb126894a7b7b950b07b6c735.tar.gz |
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.
Diffstat (limited to 'commands/compose/postpone.go')
-rw-r--r-- | commands/compose/postpone.go | 4 |
1 files changed, 2 insertions, 2 deletions
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), |