From 6ff3c7a1ba680506d77fc1fe8dfbf5b804a3fea7 Mon Sep 17 00:00:00 2001 From: Galen Abell Date: Tue, 3 Mar 2020 08:45:06 -0500 Subject: Mark sent messages as "seen" in maildir - Add maildir flags to complement a messages imap flags - Set the "seen" flag on sent messages when using the maildir backend - Cleanup AppendMessage interface to use models.Flag for both IMAP and maildir --- commands/compose/send.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/compose') diff --git a/commands/compose/send.go b/commands/compose/send.go index 2d994bf..9136ce8 100644 --- a/commands/compose/send.go +++ b/commands/compose/send.go @@ -10,7 +10,6 @@ import ( "strings" "time" - "github.com/emersion/go-imap" "github.com/emersion/go-sasl" "github.com/emersion/go-smtp" "github.com/gdamore/tcell" @@ -18,6 +17,7 @@ import ( "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" ) @@ -235,7 +235,7 @@ func (Send) Execute(aerc *widgets.Aerc, args []string) error { r, w := io.Pipe() worker.PostAction(&types.AppendMessage{ Destination: config.CopyTo, - Flags: []string{imap.SeenFlag}, + Flags: []models.Flag{models.SeenFlag}, Date: time.Now(), Reader: r, Length: nbytes, -- cgit 1.4.1-2-gfad0