ref: b0384439590d2899456b84b785b365a616ffaf2c
parent: 993c7b5fdfda16a62a3d5059670694083e674d51
author: Ori Bernstein <[email protected]>
date: Tue Dec 10 18:01:06 EST 2019
only ensurecache() on doplumb().
--- a/sys/src/cmd/upas/fs/mbox.c
+++ b/sys/src/cmd/upas/fs/mbox.c
@@ -88,9 +88,8 @@
m->cstate |= Cnew;
n++;
}
- if((m->cstate & (Cnew|Cmod)) && ensurecache(mb, m) == 0){
- if(doplumb)
- mailplumb(mb, m);
+ if((doplumb && m->cstate & (Cnew|Cmod)) && ensurecache(mb, m) == 0){
+ mailplumb(mb, m);
msgdecref(mb, m);
}
m->cstate &= ~(Cnew|Cmod);