From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iNfYHP8Xs2PAWgEAbAwnHQ (envelope-from ) for ; Mon, 02 Jan 2023 18:44:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id AG6THP8Xs2P46QAAauVa8A (envelope-from ) for ; Mon, 02 Jan 2023 18:44:31 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1EF7126866 for ; Mon, 2 Jan 2023 18:44:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCOr0-0006kk-9e; Mon, 02 Jan 2023 12:44:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pCOqx-0006jm-EE for bug-guix@gnu.org; Mon, 02 Jan 2023 12:44:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pCOqx-0004Vd-6B for bug-guix@gnu.org; Mon, 02 Jan 2023 12:44:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pCOqx-0004Dq-1n for bug-guix@gnu.org; Mon, 02 Jan 2023 12:44:03 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#49115: [PATCH 1/1] debbugs: Do not check for MIME encoded words in subject. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 02 Jan 2023 17:44:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49115 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus Cc: Arun Isaac , 49115-done@debbugs.gnu.org, guile-email@systemreboot.net Received: via spool by 49115-done@debbugs.gnu.org id=D49115.167268141816173 (code D ref 49115); Mon, 02 Jan 2023 17:44:03 +0000 Received: (at 49115-done) by debbugs.gnu.org; 2 Jan 2023 17:43:38 +0000 Received: from localhost ([127.0.0.1]:43979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCOqY-0004Cm-EZ for submit@debbugs.gnu.org; Mon, 02 Jan 2023 12:43:38 -0500 Received: from mugam.systemreboot.net ([139.59.75.54]:37296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCOqS-0004CL-Qh for 49115-done@debbugs.gnu.org; Mon, 02 Jan 2023 12:43:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=oeqj1mvcKuwWTpdP0s4Aafo7CzNXTgqAh3ILTMoklCw=; b=Px0HJ8VzAMCxvlWIQRfiN2IlBI mr57a3w1aIEJCaoKSgW2GRG/jgiZWFOkBqVqKUUr70tCeHmVXUD/LO0c+ZiZ2OL/BMuLlw4UeVLE6 /IM3ZOgYIDdnWIaMjHOoaJtOs2imszlUP76AK7Zo2IvZycOiRTuh+uqc6NOXdxE9eXFkHF89bs8D/ rrufOP4O7dN2AFb6/zg95hDU9KVW3tAthglEPHqVvggLewNTHRL+CRo+OGPjYbbg3o0HLQX/f8e8q 6whTTPPkdRNMLULSRPXlMYAPfmLpPaPAwNKq7lndl6V3fPq1ljKKg+GfZ9oId7iKRoMxebbV7FikN C6TV6Y4g==; Received: from [192.168.2.1] (port=28638 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1pCOqL-00113G-2y; Mon, 02 Jan 2023 23:13:26 +0530 From: Arun Isaac Date: Mon, 2 Jan 2023 17:43:12 +0000 Message-Id: <20230102174312.9685-2-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.38.1 In-Reply-To: <87ilhq5lyw.fsf@elephly.net> References: <87ilhq5lyw.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672681471; a=rsa-sha256; cv=none; b=ARnJU+GfuwBh0t8FxB9o3raGpQxoL1lIg8kFGTqcGDafWl/ZKDGQ4ziqTr6EirNjjQAyNy XDW49vlBkyNRzpHs3C0SrWKP/VJQtmMaSzCqFn+vKBCJYniriJ0JgYJIIs2MYp9a1TigL2 yLc0EhJ8pmADDem/A9XDiIQbcSvi7IKBjr7XRn14x9mBTPoaf4GtFw5JyHm1ma0ZcWWqE3 pBUjC1mCjk9ujeevdAlkBA9ndeIbD2kK7E4j3HKNi2UAcj1TOR8hzLZ01NeUObRolZ0XMw xg1fns7slxFfG/VVg8i0voMoctQJfkla9icmWsRIJOVvZyJdKleV3L8u5bnvbQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=Px0HJ8Vz; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672681471; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=oeqj1mvcKuwWTpdP0s4Aafo7CzNXTgqAh3ILTMoklCw=; b=W+ZDGsb67r0u+b6WpzftkmXCu2rTNwJmp78n1j5qN0FgPndlLa9+fr5sF7huaiKmXivQ1H orRf7VY33bptlHEGAa1ROUbVbK54mrnf2CW98GGep4OD7HnCbWxH4TRJJbFZfQrK3wrCHf 6VUBb3S12/8CzN2q/2VixV+KhCVfU9zamRiP1GDScypZkYdeD8c3Ek0y+OnITYfVIN6rZF tBtUdQmtAbJn4d6OmhltgKcTA6Wrv5MkIsPiMY5HPzcmOrjsg61jPEDhR7pfevEOSjZYo2 AWsi22S4Za7lPjaVYW3+X4CB6Ksh5Jhbmf0t/I4ocMP29k83/HfTRcZN4CfQxg== X-Spam-Score: -0.95 X-Migadu-Queue-Id: 1EF7126866 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=Px0HJ8Vz; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none) X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -0.95 X-TUID: Jnlpvf/2RXWM guile-email transparently handles MIME encoded words. We do not have to check for them. * mumi/debbugs.scm (bug-status): Do not check for MIME encoded words in subject. --- mumi/debbugs.scm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mumi/debbugs.scm b/mumi/debbugs.scm index 16bff8e..7e95ddf 100644 --- a/mumi/debbugs.scm +++ b/mumi/debbugs.scm @@ -1,5 +1,6 @@ ;;; mumi -- Mediocre, uh, mail interface ;;; Copyright © 2020 Ricardo Wurmus +;;; Copyright © 2023 Arun Isaac ;;; ;;; This program is free software: you can redistribute it and/or ;;; modify it under the terms of the GNU Affero General Public License @@ -280,10 +281,10 @@ defaults to 30 days." (assoc-ref properties "Submitter") (assoc-ref properties "Owner") (or (assoc-ref properties "Severity") "normal") - (let ((subject (or (assoc-ref properties "Subject") ""))) - (if (string-contains subject "=?UTF-8?Q?") - (match (parse-email-headers (string-append "Subject: " subject "\n")) - ((('subject . sub) . rest) sub) - (other subject)) - subject)) + (assq-ref + (parse-email-headers + (string-append "Subject: " + (or (assoc-ref properties "Subject") "") + "\n")) + 'subject) (assoc-ref properties "Tags")))) -- 2.38.1