code: plan9front

Download patch

ref: b66bffe91c2b0fac63a5124b968e807d5e73729e
parent: ee289c241577a3553bfd73211cd81e137ab4fe40
author: Ori Bernstein <ori@eigenstate.org>
date: Sat May 1 11:33:31 EDT 2021

Mail: remove message about cyclic threads

They happen, and we break the cycle. There's nothing
the user can do, so there's no point in warning.

--- a/sys/src/cmd/upas/Mail/mbox.c
+++ b/sys/src/cmd/upas/Mail/mbox.c
@@ -175,10 +175,9 @@
 
 	assert(m->parent == nil);
 	for(q = p; q != nil; q = q->parent){
-		if(ideq(m->messageid, q->messageid)){
-			fprint(2, "wonky message replies to self\n");
+		/* some messages refer to themselves */
+		if(ideq(m->messageid, q->messageid))
 			return 0;
-		}
 		if(m->time > q->time)
 			q->time = m->time;
 	}