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 KLSvBSjjA2GXYwEAgWs5BA (envelope-from ) for ; Fri, 30 Jul 2021 13:31:52 +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 eEdTASjjA2EkLgAAB5/wlQ (envelope-from ) for ; Fri, 30 Jul 2021 11:31:52 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 C9184C394 for ; Fri, 30 Jul 2021 13:31:51 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 30201291B8; Fri, 30 Jul 2021 07:31:38 -0400 (EDT) X-Greylist: delayed 939 seconds by postgrey-1.36 at nmbug; Sun, 26 Jul 2020 17:27:12 EDT Received: from mslow2.mail.gandi.net (mslow2.mail.gandi.net [217.70.178.242]) by mail.notmuchmail.org (Postfix) with ESMTPS id A0D311F9C9 for ; Sun, 26 Jul 2020 17:27:12 -0400 (EDT) Received: from relay4-d.mail.gandi.net (unknown [217.70.183.196]) by mslow2.mail.gandi.net (Postfix) with ESMTP id CC50F3A0D7A for ; Sun, 26 Jul 2020 21:11:28 +0000 (UTC) X-Originating-IP: 98.32.4.57 Received: from Kepler (c-98-32-4-57.hsd1.nm.comcast.net [98.32.4.57]) (Authenticated sender: greg@gpanders.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id E1F1EE0005; Sun, 26 Jul 2020 21:11:01 +0000 (UTC) Date: Sun, 26 Jul 2020 15:10:59 -0600 From: Greg Anders To: Stefano Zacchiroli Subject: Re: [Kevin McCarthy] Bug#966100: notmuch-mutt: symlinking now fails for indexed mailboxes with a space in the name Message-ID: <20200726211059.GA91635@Kepler> Mail-Followup-To: Stefano Zacchiroli , David Bremner , notmuch@notmuchmail.org References: <159546998738.232977.10166967333633103899.reportbug@afu.lan> <87eep2o90a.fsf@tethera.net> <20200723104538.s474yxb53tx47peu@upsilon.cc> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200723104538.s474yxb53tx47peu@upsilon.cc> X-MailFrom: greg@gpanders.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 Message-ID-Hash: EBLGGUJFS6BG4PIH5TB4KI2REARRNMC5 X-Message-ID-Hash: EBLGGUJFS6BG4PIH5TB4KI2REARRNMC5 X-Mailman-Approved-At: Fri, 30 Jul 2021 11:31:32 -0400 CC: notmuch@notmuchmail.org 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"; format="flowed" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627644711; 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=Skk26/+t1e1J7Wk0/4HdonVanOPaAKPLfKIqszc3/2Q=; b=tm2kpQh2xjO639MZQDfx21Tc0XOl36DFryGi0J+9Ivvp6hg3MG+WAw3UHAxSk4xMejvYB6 7yCsmM2jT49CHx6P9xI+L1GFn5N4kXZ547AqYRWtpA3rHuelsexW8+A7iA2LsdHSqspEWr CWUGYDyPYSTaHe+3Z1KNGUUWkes7Io5MPygVsNP9mASPAlk3Et/wefC4VlZTrnUGTnSHoW HRWVIgRRf7zIo9xAIznpd7m1UtVoTKfegXUS5gIK8glLGfEIRSpjnhzmbsuwJsjT8Fi3w7 hJtLoJEtcD0vkd75J2xhZtmuMOrBPRZYmVlPLv5TRExxlSasGv0eWTxCyTPuHA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627644711; a=rsa-sha256; cv=none; b=jUc6sFN0YeG1v1n7KBPQ1ixQfAluIP+vbM2yo8THIU/hLaUrNaHp4JYUN5zZs0Se+haE6H Nin7KrykVfaJfGeOx0+hoqFia68adpQFSJN5xDFP1uIfIELcQzjNLYaFeSIplZQOpCHrm8 jjn34MKU1gQcccSvfwYPtDQk6n3OMvvedE6Yy691+F4DlnK+WKQ4263DZybQlJRToGLYEc uNgXoudjue2XDx+THaPH5xB7FdJAWmO+DjcbeTD34LroVZTfplRLyk2/s9XEnINeiwQc0z EprV621i6uWEiBuQSAaJiXWW8so5TCwTuzpzR4qH0e9s9GSx+kTwSpw7GMcmkQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gpanders.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 1.12 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gpanders.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: C9184C394 X-Spam-Score: 1.12 X-Migadu-Scanner: scn1.migadu.com X-TUID: q0eDCPJAqLZl From 92221d856e663450c1f55b9ec9a6aa69b4d27b3d Mon Sep 17 00:00:00 2001 From: Greg Anders Date: Sun, 26 Jul 2020 14:57:56 -0600 Subject: [PATCH] notmuch-mutt: quote variables to prevent word splitting This fixes a bug where mail under directories with spaces in their names would not be found. --- contrib/notmuch-mutt/notmuch-mutt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/notmuch-mutt/notmuch-mutt b/contrib/notmuch-mutt/notmuch-mutt index d33223bd..8ab1849f 100755 --- a/contrib/notmuch-mutt/notmuch-mutt +++ b/contrib/notmuch-mutt/notmuch-mutt @@ -50,7 +50,7 @@ sub search($$$) { empty_maildir($maildir); system("notmuch search --output=files $dup_option $query" . " | sed -e 's: :\\\\ :g'" - . " | while IFS= read -r searchoutput; do ln -s \$searchoutput $maildir/cur/; done"); + . " | while IFS= read -r searchoutput; do ln -s \"\$searchoutput\" $maildir/cur/; done"); } sub prompt($$) { -- 2.27.0