diff options
author | Yash Srivastav <yash111998@gmail.com> | 2019-06-08 21:21:26 +0530 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-06-08 12:44:01 -0400 |
commit | 35f57321f8d53dba2c1a2480aaa5860333e1c269 (patch) | |
tree | 8dde624e6cf6de96f2144232d26b46ecc6dbf956 /commands | |
parent | 5f651b32e535716d99a9c1bea7c0ab5826bd633c (diff) | |
download | aerc-35f57321f8d53dba2c1a2480aaa5860333e1c269.tar.gz |
Mark sent emails as read
Diffstat (limited to 'commands')
-rw-r--r-- | commands/compose/send.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/compose/send.go b/commands/compose/send.go index 7956aee..96d24d9 100644 --- a/commands/compose/send.go +++ b/commands/compose/send.go @@ -9,6 +9,7 @@ import ( "strings" "time" + "github.com/emersion/go-imap" "github.com/emersion/go-sasl" "github.com/emersion/go-smtp" "github.com/gdamore/tcell" @@ -180,7 +181,7 @@ func SendMessage(aerc *widgets.Aerc, args []string) error { r, w := io.Pipe() worker.PostAction(&types.AppendMessage{ Destination: config.CopyTo, - Flags: []string{}, + Flags: []string{imap.SeenFlag}, Date: time.Now(), Reader: r, Length: nbytes, |