Fix notify-mail.hy again
This commit is contained in:
parent
fbf7e67019
commit
0d915e9647
@ -29,9 +29,9 @@
|
||||
(output.add msg))))
|
||||
output))
|
||||
(defn mark-all-read [self uid [exclude-msgs None]]
|
||||
(let [files (self.find-by-uid uid exclude-msgs)]
|
||||
(for [file files]
|
||||
(file.mark-read)))))
|
||||
(let [msgs (self.find-by-uid uid exclude-msgs)]
|
||||
(for [msg msgs]
|
||||
(msg.mark-read)))))
|
||||
|
||||
(defclass MailMessage []
|
||||
(setv inbox None
|
||||
@ -139,9 +139,12 @@
|
||||
msg.subject
|
||||
:time 10000
|
||||
:actions ["Mark Read" "Delete"])
|
||||
0 (msg.inbox.mark-all-read msg.uid)
|
||||
0 (do
|
||||
(msg.mark-read)
|
||||
(msg.inbox.mark-all-read msg.uid :exclude-msgs [msg]))
|
||||
1 (do
|
||||
(msg.inbox.mark-all-read msg.uid)
|
||||
(msg.mark-read)
|
||||
(msg.inbox.mark-all-read msg.uid :exclude-msgs [msg])
|
||||
(msg.move "Trash")))))
|
||||
|
||||
(when (< (len sys.argv) 2)
|
||||
|
Loading…
Reference in New Issue
Block a user