From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6O8ZGLErRWMCCQAAbAwnHQ (envelope-from ) for ; Tue, 11 Oct 2022 10:39:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +KaFF7ErRWMJqQAAG6o9tA (envelope-from ) for ; Tue, 11 Oct 2022 10:39:13 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 25A102C585 for ; Tue, 11 Oct 2022 10:39:13 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 9C0555F375; Tue, 11 Oct 2022 08:39:10 +0000 (UTC) X-Greylist: delayed 604 seconds by postgrey-1.36 at yantan; Tue, 11 Oct 2022 08:39:08 UTC Received: from smtpout2.mo529.mail-out.ovh.net (smtpout2.mo529.mail-out.ovh.net [79.137.123.220]) by mail.notmuchmail.org (Postfix) with ESMTPS id 328865F36C for ; Tue, 11 Oct 2022 08:39:08 +0000 (UTC) Received: from mxplan6.mail.ovh.net (unknown [10.109.138.84]) by mo529.mail-out.ovh.net (Postfix) with ESMTPS id 51C0213133518 for ; Tue, 11 Oct 2022 10:19:47 +0200 (CEST) Received: from jwilk.net (37.59.142.105) by DAG4EX1.mxp6.local (172.16.2.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Tue, 11 Oct 2022 10:19:46 +0200 X-OVh-ClientIp: 5.172.255.106 From: Jakub Wilk To: Subject: [PATCH] nmweb: Fix spacing around punctuation in headers Date: Tue, 11 Oct 2022 10:19:44 +0200 Message-ID: <20221011081944.3197-1-jwilk@jwilk.net> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-Originating-IP: [37.59.142.105] X-ClientProxiedBy: DAG1EX2.mxp6.local (172.16.2.2) To DAG4EX1.mxp6.local (172.16.2.31) X-Ovh-Tracer-GUID: e4a85b5b-391e-4e3a-b843-b6b0b10082f5 X-Ovh-Tracer-Id: 2820097795477460890 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrfeejiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvufffkffoggfgtghisehtkeertdertddtnecuhfhrohhmpeflrghkuhgsucghihhlkhcuoehjfihilhhksehjfihilhhkrdhnvghtqeenucggtffrrghtthgvrhhnpedvheejjeffjeejvdekheehjeeilefhffdtudetfeehueekueeivdduheevheefhfenucfkpheptddrtddrtddrtddpfeejrdehledrudegvddruddtheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepmhigphhlrghniedrmhgrihhlrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehjfihilhhksehjfihilhhkrdhnvghtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepnhhothhmuhgthhesnhhothhmuhgthhhmrghilhdrohhrghdpoffvtefjohhsthepmhhohedvle Message-ID-Hash: BH7EZIMYVMA4WAT5SZDPQJNNQCCMQLVB X-Message-ID-Hash: BH7EZIMYVMA4WAT5SZDPQJNNQCCMQLVB X-MailFrom: jwilk@jwilk.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665477553; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=i6GqkPU37TKO5zOBR9mBhlD7bxKGB4oY+zJUDyCuuOk=; b=dA1RD815JEWn/4J1UgTAU7q8RyUHZcX7QmUJEuZ4VqDBSb0JxzjYsoCpNCRg6pyTvg9YH0 +3CsBwbEMEPWhLp+jQkwkGBPF7BWsDnb/FeaTd1CGPnfDh0VwwJJLSLo+lHbRlviyj0p53 v6FqE0gs36ysPOYjhDXna8t1k71yRdXjhDUYbkFahyJhda2w4gQy4DhMBEiHSBi2AhzIM+ j+v0usYsDDRODsr3hM1TX+kVu2SS4L/fcyF/HXUkfPV6fkAzAg04oauwJd0ZzJePNHSem3 YEKVM0su+iFmRKCKQcHvmPxbybI6vqnddAiuciA3lP/0J6zK1tj2M+wOFrXQ5w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665477553; a=rsa-sha256; cv=none; b=b/2mc6frgwxBbpBPcs+xAEb9fGxSTOOEOSuJWaPu1R3FeIs17T0DWhJ9fovx3XzofJv/Nf /EN+Fnz7YwZzUZ4+upBEG+PQdrQpvByEWPDmdqZZTctZZ7u9n80W6GRxaAHD0XP09V7T0T njIO8oSOoz+uyybPrUIRrKs8bJPvkTY9WUjflnVvJBPztMTfhfZB5GCqiONE0mLimTb70Q MTo0qDYLb2ZwrAp/eFlzDdV+7DPWtQmf9fKq9wzaVyrmaz8bEM3enheeqTrAxLdiFRhWsp KWQxYsHDflm0Rw+9VLMKkejSc/9CM4RaajwFtO8GZHHm1E1PeojkDU3hLyWn9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.75 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 25A102C585 X-Spam-Score: -1.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: dw4FJS2DjhY6 --- devel/notmuch-web/nmweb.py | 2 +- devel/notmuch-web/templates/show.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) This is completely untested, but hey, what could possibly go wrong? diff --git a/devel/notmuch-web/nmweb.py b/devel/notmuch-web/nmweb.py index 7b555c62..b0d4d5cd 100755 --- a/devel/notmuch-web/nmweb.py +++ b/devel/notmuch-web/nmweb.py @@ -125,7 +125,7 @@ def mailto_addrs(msg,header_name): return '' frm = email.utils.getaddresses([hdr]) - return ','.join(['%s ' % ((l, p) if p else (l, l)) for (p, l) in frm]) + return ', '.join(['%s' % ((l, p) if p else (l, l)) for (p, l) in frm]) env.globals['mailto_addrs'] = mailto_addrs def link_msg(msg): diff --git a/devel/notmuch-web/templates/show.html b/devel/notmuch-web/templates/show.html index 98d36acc..690f5464 100644 --- a/devel/notmuch-web/templates/show.html +++ b/devel/notmuch-web/templates/show.html @@ -3,10 +3,10 @@ {% set headers = ['Subject', 'Date'] %} {% set addr_headers = ['To', 'Cc', 'From'] %} {% for header in headers: %} -

{{header}}:{{m.header(header)|e}}

+

{{header}}: {{m.header(header)|e}}

{% endfor %} {% for header in addr_headers: %} -

{{header}}:{{mailto_addrs(m,header)|safe}}

+

{{header}}: {{mailto_addrs(m,header)|safe}}

{% endfor %}
{% for part in format_message(m,mid): %}{{ part|safe }}{% endfor %} -- 2.37.2