From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4N9tHVarN19NLwAA0tVLHw (envelope-from ) for ; Sat, 15 Aug 2020 09:31:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eBxcGVarN19IbQAAB5/wlQ (envelope-from ) for ; Sat, 15 Aug 2020 09:31:02 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 12BDD940602 for ; Sat, 15 Aug 2020 09:30:59 +0000 (UTC) Received: from [144.217.243.247] (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 171B329B96; Sat, 15 Aug 2020 05:30:50 -0400 (EDT) Received: from meesny.iki.fi (meesny.iki.fi [195.140.195.201]) by mail.notmuchmail.org (Postfix) with ESMTPS id 5BC851FA22 for ; Sat, 15 Aug 2020 05:30:47 -0400 (EDT) Received: from mithlond.arda (mobile-access-bceeee-200.dhcp.inet.fi [188.238.238.200]) (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) (Authenticated sender: tlikonen) by meesny.iki.fi (Postfix) with ESMTPSA id 08F61205B6; Sat, 15 Aug 2020 12:30:45 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1597483845; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IdWvHW5VgiDBG0ykwqo0JLfwzQ0L2+xXtD8St5lb/aA=; b=k4oFZruYyYnfMZ8wkBVEVx2IoJ4tmK5RoKs7IC57GmCZQEi3LrXHU/EKttRcQNUo6pmiGJ npSd/UA8Jk5GwqpSo3wQnUqnnN66bZrF4yxjEQV5cKRrPEDyw7pfGW05DO3HrFUCqgC78R 6/fjTLHpgIlk7bovKr9IwtK/9lgdBsM= From: Teemu Likonen To: notmuch@notmuchmail.org Subject: [PATCH 2/2] Emacs: Call notmuch-balance-bidi-ctrl-chars in notmuch-sanitize Date: Sat, 15 Aug 2020 12:30:36 +0300 Message-Id: <20200815093036.5930-3-tlikonen@iki.fi> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200815093036.5930-1-tlikonen@iki.fi> References: <20200815093036.5930-1-tlikonen@iki.fi> MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1597483845; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IdWvHW5VgiDBG0ykwqo0JLfwzQ0L2+xXtD8St5lb/aA=; b=TM6XXR2uHm6pTY6w23pppqyZdsVzmkDjTjOgTwsxGWH22UGzz5grex6fpjCYcKgRC3MNzb WllVndRTmAjH6dC9Qf8r4XZZ7nEWxJkJS8K2/Xcryle2nhFHigb2ytEgnvDX20PtZkdquS YIyhl1jfiWO91FFfL2xkuZFb2kKsMLg= ARC-Seal: i=1; s=meesny; d=iki.fi; t=1597483845; a=rsa-sha256; cv=none; b=gNq5LHHa90+4AMla5jt2yGl0ybi+gVcuPEzdcZgqc76D//Jp9gUGeznE8c12mVavVApsFs 1LadYTrl1RlUaG1GA8qEii/TVySx+0Ps4fSuCeepAAClJi1V9tduS7cROZo0GvlCD2S2np qPgCWFLzpVB65XGr4caMYBvzFveI6xs= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@iki.fi Message-ID-Hash: SOKOLX2EL3ETVCEC5HOX7DRDZMA2PMFQ X-Message-ID-Hash: SOKOLX2EL3ETVCEC5HOX7DRDZMA2PMFQ X-MailFrom: tlikonen@iki.fi 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; suspicious-header CC: tomi.ollila@iki.fi X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=iki.fi header.s=meesny header.b=k4oFZruY; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 4.53 X-TUID: geSxpffsUrav --- emacs/notmuch-lib.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index e6252c6c..e0122f7a 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -527,7 +527,8 @@ function should be used when sanitizing arbitrary input." "Sanitize control character in STR. This includes newlines, tabs, and other funny characters." - (replace-regexp-in-string "[[:cntrl:]\x7f\u2028\u2029]+" " " str)) + (notmuch-balance-bidi-ctrl-chars + (replace-regexp-in-string "[[:cntrl:]\x7f\u2028\u2029]+" " " str))) (defun notmuch-escape-boolean-term (term) "Escape a boolean term for use in a query. -- 2.20.1