From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [192.168.2.1] (port=21199 helo=sender4-of-o51.zoho.com) by systemreboot.net with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1pBzzY-000xkt-1l; Sun, 01 Jan 2023 20:41:17 +0530 ARC-Seal: i=1; a=rsa-sha256; t=1672585868; cv=none; d=zohomail.com; s=zohoarc; b=E0lP4+dtJomkDGOEnbL8FeIcvn9oujlusPducyMV3YEv4VgoWwM1RkdwQ6MmRae7lWq7HxNWGtlkKdHYnVDCJF80zFDx5dsJUK/f5UNHostPywtK+Qq3fBPY2kPf9yF+q8Pk7YqJk5FDlluVB9KWKl0LW3ZRKCEODE1Y6g3i380= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672585868; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=tAp0KOj/vn1NTRlCVuszFEMJ/wr7FAGMT9YCMxKnx4k=; b=JexfuXZ1JIqCDoIAN0AvhWahqZKhbLx9Ee9q52c1njxzdi0OfF+/m2Tj0a9pgeVcqR8IeczWvQ8ecqx38Z7J/YeOVJ3glL3f+OmTw/YtCX35okIYW9BaaCWCB6OC7rI+hl8tClUm/zfM0wGRE6uvO6AOoRGhv3iP8bOpI1GP6gA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1672585868; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=tAp0KOj/vn1NTRlCVuszFEMJ/wr7FAGMT9YCMxKnx4k=; b=JG70WjxTOOoZIAGiffsAkTCkQm6C9utDb7901UaI9GK0u0AwW+eqJrdJFCS1R7bv GL+XYEuM1TuGYYSP9d/PB6wOnRsqwyndr/3e72CVCekjtU/oQ/ZF/xd+jqWfZogy4Y2 ADlz8m3yZykOHK/9UYrc89pzuN7chXyvm5m8endw= Received: from localhost (i5E862C54.versanet.de [94.134.44.84]) by mx.zohomail.com with SMTPS id 1672585866896479.36782372790617; Sun, 1 Jan 2023 07:11:06 -0800 (PST) References: <87y1qwbdlr.fsf@elephly.net> <87ilhungt4.fsf@systemreboot.net> User-agent: mu4e 1.8.13; emacs 28.2 From: Ricardo Wurmus To: Arun Isaac Cc: 49115-done@debbugs.gnu.org, guile-email@systemreboot.net Subject: Re: Mumi inserts spurious underscore in bug title Date: Sun, 01 Jan 2023 13:15:02 +0100 In-reply-to: <87ilhungt4.fsf@systemreboot.net> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87ilhq5lyw.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External List-Id: Hi Arun, > Thanks for the bug report! > > It's very strange, but I'm not able to reproduce this. Thank you for your analysis! > Even at https://issues.guix.gnu.org/49114 , only the "bug title" has the > spurious underscore. The subject of the first message does not. Is the > bug title something stored in the xapian index? Could it be that this > was an older bug that has corrupted the xapian index? As part of #60410 I rebuilt the xapian database (deleted it and then ran =E2=80=9Cmumi fetch=E2=80=9D), so it=E2=80=99s not that. [=E2=80=A6 time passes =E2=80=A6] I think I found the culprit in mumi/debbugs.scm: (define qp-pattern "=3D\\?UTF-8\\?Q\\?([^?]+)\\?=3D") =E2=80=A6 (let ((subject (or (assoc-ref properties "Subject") ""))) (if (string-contains subject "=3D?UTF-8?Q?") (or (false-if-exception (utf8->string (quoted-printable-decode (regexp-substitute/global #f qp-pattern subject 'pre 1 'post)))) subject) subject)) I=E2=80=99m probably not using quoted-printable-decode correctly. My apolo= gies for assuming a bug in Guile Email. I changed this with commit 9d7eb3c5efe6427a1a89fb3e4c7165259edff4dd, using parse-email-headers. > If I understand correctly, mumi does not rebuild its xapian index. I > think it should do so from time to time. It would help prevent old bugs > from getting persisted in storage. True. I=E2=80=99ll be sure to rebuild the index on the next upgrade. > Cheers, and wish you a Happy New Year! :-) Thank you, and a Happy New Year to you too! --=20 Ricardo