shithub: riscv

Download patch

ref: 1f464e0013ddc9b5901a50d11d4ef5bd570be39c
parent: 5a5d3e0414f733c69fb43399972a81d465c08555
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Nov 22 03:55:13 EST 2018

upas/fs: keep messages *marked* for deletion in the index

--- a/sys/src/cmd/upas/fs/cache.c
+++ b/sys/src/cmd/upas/fs/cache.c
@@ -382,7 +382,7 @@
 int
 insurecache(Mailbox *mb, Message *m)
 {
-	if(m->deleted || !m->inmbox)
+	if((m->deleted & ~Deleted) != 0 || !m->inmbox)
 		return -1;
 	msgincref(mb, m);
 	cacheidx(mb, m);