From 14130941c72318784539c98ab46cd295a0e17ccc Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sun, 14 Jun 2020 20:28:20 +0200 Subject: [PATCH] Handle empty from or subject --- mbox2web | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbox2web b/mbox2web index dbe1d8c..90160cd 100755 --- a/mbox2web +++ b/mbox2web @@ -1104,7 +1104,7 @@ class Thread: for r in m.in_reply_to: p = self.messages[r] edges.append((p.x, p.y, m.x, m.y)) - lines.append((m.date, m.mfrom, m.subject, m.encmsgid)) + lines.append((m.date, m.mfrom or "(no sender)", m.subject or "(no subject)", m.encmsgid)) y += 1 s = "" s += ""