about summary refs log tree commit diff stats
path: root/commands
diff options
context:
space:
mode:
authorYash Srivastav <yash111998@gmail.com>2019-06-08 21:21:26 +0530
committerDrew DeVault <sir@cmpwn.com>2019-06-08 12:44:01 -0400
commit35f57321f8d53dba2c1a2480aaa5860333e1c269 (patch)
tree8dde624e6cf6de96f2144232d26b46ecc6dbf956 /commands
parent5f651b32e535716d99a9c1bea7c0ab5826bd633c (diff)
downloadaerc-35f57321f8d53dba2c1a2480aaa5860333e1c269.tar.gz
Mark sent emails as read
Diffstat (limited to 'commands')
-rw-r--r--commands/compose/send.go3
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,
85 - promote SubX to top-level' href='/akkartik/mu/commit/vimrc.vim?h=hlt&id=6e1eeeebfb453fa7c871869c19375ce60fbd7413'>6e1eeeeb ^
b3cdcdd4 ^
a9817844 ^
a9817844 ^
6e1eeeeb ^
a9817844 ^
b96af395 ^






6e1eeeeb ^
3fe43bca ^
6e1eeeeb ^
3fe43bca ^

6e1eeeeb ^
3fe43bca ^

6e1eeeeb ^

3fe43bca ^







6e1eeeeb ^










aeac1e06 ^
6e1eeeeb ^
aeac1e06 ^
6e1eeeeb ^


a56d969e ^
f88f77cd ^
6e1eeeeb ^
b2c8b732 ^

14a06183 ^

b2c8b732 ^
4c131b38 ^
85eb8167 ^
f88f77cd ^
2844327a ^



a5fa9785 ^
8e607b12 ^
eafdbfc1 ^
2844327a ^

2844327a ^
85eb8167 ^
2844327a ^
a5fa9785 ^
8e607b12 ^
4c131b38 ^
2844327a ^
8e607b12 ^
2844327a ^






6e1eeeeb ^
6e1eeeeb ^




890df1de ^



7fbf3b3e ^
04dcb8f3 ^
7fbf3b3e ^
ddcc5dfe ^


7fbf3b3e ^
890df1de ^
7fbf3b3e ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124