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
This commit is contained in:
parent
68f179021d
commit
6ff3c7a1ba
10 changed files with 65 additions and 21 deletions
commands/compose
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue