shithub: riscv

Download patch

ref: b5ea1cc4be54f0162cd50533f4b74e59465787de
parent: 3b51df75b58ac4ce394f332f5fad42be0b5c1491
author: cinap_lenrek <[email protected]>
date: Mon Nov 12 15:43:25 EST 2018

upa/imap4d: ignore messages without digest info

--- a/sys/src/cmd/upas/imap4d/mbox.c
+++ b/sys/src/cmd/upas/imap4d/mbox.c
@@ -209,7 +209,7 @@
 			m->size = ~0UL;
 			m->lines = ~0UL;
 			m->flags = Frecent;
-			if(!msginfo(m))
+			if(!msginfo(m) || m->info[Idigest] == 0)
 				freemsg(0, m);
 			else{
 				fstreeadd(box, m);