about summary refs log tree commit diff stats
path: root/commands/msg
diff options
context:
space:
mode:
authorArt Wild <wildart@gmail.com>2019-08-06 00:02:21 -0400
committerDrew DeVault <sir@cmpwn.com>2019-08-08 10:12:17 +0900
commitd4416e74ac64e10249ad085f0bcd12887b077bf2 (patch)
tree34edffb7f6804baa249a9478b2b3af24b427c753 /commands/msg
parent00167752785a50158e9aebbe72ad3f05f49e347e (diff)
downloadaerc-d4416e74ac64e10249ad085f0bcd12887b077bf2.tar.gz
Fix `unread` command
This fixes ~sircmpwn/aerc2#195. While `read -t` works fine.
The `unread` command is not wired. This patch fixes it.

https://todo.sr.ht/~sircmpwn/aerc2/195
Diffstat (limited to 'commands/msg')
-rw-r--r--commands/msg/read.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/msg/read.go b/commands/msg/read.go
index 8999627..3497ef1 100644
--- a/commands/msg/read.go
+++ b/commands/msg/read.go
@@ -63,6 +63,8 @@ func (_ Read) Execute(aerc *widgets.Aerc, args []string) error {
 		}
 	} else if args[0] == "read" {
 		newReadState = true
+	} else if args[0] == "unread" {
+		newReadState = false
 	}
 	store.Read([]uint32{msg.Uid}, newReadState, func(
 		msg types.WorkerMessage) {
f='#n144'>144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212