server: mark spam as read
This commit is contained in:
parent
007200b37b
commit
b9c116d5b6
@ -50,7 +50,7 @@ url = "2.5.4"
|
||||
urlencoding = "2.1.3"
|
||||
#xtracing = { git = "http://git-private.h.xinu.tv/wathiede/xtracing.git" }
|
||||
#xtracing = { path = "../../xtracing" }
|
||||
xtracing = { version = "0.3.1", registry = "xinu" }
|
||||
xtracing = { version = "0.3.2", registry = "xinu" }
|
||||
|
||||
[build-dependencies]
|
||||
build-info-build = "0.0.40"
|
||||
|
||||
@ -1005,6 +1005,9 @@ pub async fn label_unprocessed(
|
||||
for t in &add_tags {
|
||||
nm.tag_add(t, &id)?;
|
||||
}
|
||||
if add_tags.contains("spam") || add_tags.contains("Spam") {
|
||||
nm.tag_remove("unread", &id)?;
|
||||
}
|
||||
if !add_tags.contains("inbox") {
|
||||
nm.tag_remove("inbox", &id)?;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user