From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WOb9J+6U82CkFwAAgWs5BA (envelope-from ) for ; Sun, 18 Jul 2021 04:41:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CF24I+6U82CbEQAAB5/wlQ (envelope-from ) for ; Sun, 18 Jul 2021 02:41:50 +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) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0A97F2290F for ; Sun, 18 Jul 2021 04:41:50 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 79C8E29B79; Sat, 17 Jul 2021 22:41:14 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 64DE4290A8 for ; Sat, 17 Jul 2021 22:40:43 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 5DBD15FD21; Sat, 17 Jul 2021 22:40:43 -0400 (EDT) Received: (nullmailer pid 3853937 invoked by uid 1000); Sun, 18 Jul 2021 02:40:27 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 08/25] lib/parse-sexp: split terms in phrase mode Date: Sat, 17 Jul 2021 23:40:04 -0300 Message-Id: <20210718024021.3850340-9-david@tethera.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210718024021.3850340-1-david@tethera.net> References: <20210718024021.3850340-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: ZFGU4BJMGSO54KGCR75V5YIN7QLJN47O X-Message-ID-Hash: ZFGU4BJMGSO54KGCR75V5YIN7QLJN47O X-MailFrom: bremner@tethera.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; suspicious-header 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="utf-8" Content-Transfer-Encoding: base64 X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626576110; h=from:from: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=gw9hmyT0TyjwHUaaMd2un+IubfWTlCyMtJL51SgrSto=; b=Phv818ocD2LAkJ4CvxyWluQd8KVzC5cLq+YQ3qdZ7CJTq1MEuYoRZPoFZ5xfolGBx/8Ukr pRwspJTTCrtJJAYf5mJy/N6OkRuQCUCrydKTG/FiETOD7diwkHNAaL+NGTAwiw7g15F10v pUyqBpr8kuo2mhxI+xc1nhGBT1C97ODcLN7jJ72zadYdJQT2lNW+dloMDnK9EDvjJOCauo TwrG3IZPXpqkPnwt09bEbZOU5Cpq+tRifxyn6tani5D6u5qFkv2XFgJ9AG9BEqf6gdtgTB zeultVCsunx33KcmuU2KmhOOcBqbe2KugV4ECMyNNBw3qWw1o8bJFIGCyQx/SQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626576110; a=rsa-sha256; cv=none; b=si+z2BXRTXRUnJ8wtEkekcVIdDa92LMVftuVwkinLL7O6dYnxYkwIlo3mvu/IFem0RKWgv LKG2NTsSRUFq34/1+14b1e44QYxb9O6Q8aFfBmQY1MPTqpdrgGWAbuEpaKyc6e1KUlssP6 RlvkXlZRj57aa2UDtHUr2156C4f15kL/K5AiMzZPEpou8TyMYarXf08pjLniURPlculYBL yvKUF6XpQoSWxaQvEw5RpmjqcqgeZS1lF98eesmIYc0B8P6HepLg0tz8ZUlKB7IvPn45RZ BcoDtHmDVAnajg8rBYAM/co9emVzAdWR5dN6Op1y3lWGNvY/5e+aKXxQwVz6hg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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-Migadu-Spam-Score: -0.97 Authentication-Results: aspmx1.migadu.com; dkim=none; 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-Migadu-Queue-Id: 0A97F2290F X-Spam-Score: -0.97 X-Migadu-Scanner: scn0.migadu.com X-TUID: p8aEq1BFq+AG VGhlIGdvYWwgaXMgdG8gaGF2ZSAoc3ViamVjdCBmb28tYmFyKSBtYXRjaCB0aGUgc2FtZSBtZXNz YWdlcyBhcw0Kc3ViamVjdDpmb28tYmFyLg0KLS0tDQogbGliL3BhcnNlLXNleHAuY2MgICAgICAg ICB8IDM4ICsrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKy0tLS0tDQogdGVzdC9UMDgx LXNleHByLXNlYXJjaC5zaCB8ICA4ICsrKysrKysrDQogMiBmaWxlcyBjaGFuZ2VkLCA0MSBpbnNl cnRpb25zKCspLCA1IGRlbGV0aW9ucygtKQ0KDQpkaWZmIC0tZ2l0IGEvbGliL3BhcnNlLXNleHAu Y2MgYi9saWIvcGFyc2Utc2V4cC5jYw0KaW5kZXggODk4Y2ZkZDAuLmZjNmViMmQ3IDEwMDY0NA0K LS0tIGEvbGliL3BhcnNlLXNleHAuY2MNCisrKyBiL2xpY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