1
0
mirror of https://git.sr.ht/~sircmpwn/aerc synced 2024-11-23 16:42:07 +01:00

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

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