Mark sent emails as read

This commit is contained in:
Yash Srivastav 2019-06-08 21:21:26 +05:30 committed by Drew DeVault
parent 5f651b32e5
commit 35f57321f8
1 changed files with 2 additions and 1 deletions

View File

@ -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,