From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yLrFDIMjCWJeBAEAgWs5BA (envelope-from ) for ; Sun, 13 Feb 2022 16:28:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qI6WBYMjCWI+lQAAG6o9tA (envelope-from ) for ; Sun, 13 Feb 2022 16:28:03 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 98C58445DC for ; Sun, 13 Feb 2022 16:28:02 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 4BA355F6B5; Sun, 13 Feb 2022 15:28:00 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 478665F401 for ; Sun, 13 Feb 2022 15:27:58 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 82D425FBD2; Sun, 13 Feb 2022 10:27:57 -0500 (EST) Received: (nullmailer pid 3015397 invoked by uid 1000); Sun, 13 Feb 2022 15:27:56 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: Escape mbox "From " header in notmuch-insert Date: Sun, 13 Feb 2022 11:27:47 -0400 Message-Id: <20220213152751.3015318-1-david@tethera.net> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Message-ID-Hash: MHAAN3PSEAILYLTLMZ5NNI7RGU5JBAEV X-Message-ID-Hash: MHAAN3PSEAILYLTLMZ5NNI7RGU5JBAEV 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; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644766082; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=Sk1aVR/WjzWGDOWppbRw9cG5o5NoWPa3ZFVcqzFGpFg=; b=TVVAvK2GjQyLwBiwhdjymcieAb+2gL5mdM3EySo+U1jSevo1KpWSFdMavpahlA9il0E28x dvIFcx+kv1U7gF0xgsT82a6yR2X+rLZv8cvjdnMjJ7jwnZIfPIwRVEEUhLlOhShlyWumjC ArNzdT+xpCq3MEUnl8EoRum8uffRMfVa7Dd+aq7TvIwzzy1J7bO31Cdg3Hl895U60BXzuU lfhGtT0HPo9eEJOlB/I/Hi4p6F40R+TW1iKH75qjF0m3AMyKb4JeIRnvRA4grPmS8slJCC jg0e88h54Io66VVF5W3UysePcJmlTVanHZLHkELc3PrTIZ4Ewxa13iIWyIxcPg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644766082; a=rsa-sha256; cv=none; b=ogAoNMsKHZ74Cft4QuUCSPwhszHprzIRiSpTO+d2Ff3sM5pxztCsYnP0WaLPhJPcn3YuKe ejm773+225F/+M5/ASYx8GacatprdTJK3Kv04AdCBDd8WtvvWuAl+vqSlqtTrEjDAXsf7s Zlf3eViLbQPiigeYJPt059wu8Ac602Gs+yg67tG6oY88dJaWUw1bRy/MGLuXBWmFGgogSq TSaqJTD421IxsNKjl1MJnT3khb2yPcKBTYhXwaB4wIgEC6EZ95JSx1/S49DAs/nk8JPepz zozv1tZFSTtHQ6O3i1JpAUTmk9oIZdn0U2u5DKlO4Cpm3becaBHwNBgUXtYUMw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.35 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 98C58445DC X-Spam-Score: -1.35 X-Migadu-Scanner: scn1.migadu.com X-TUID: WTKOVFaUJb+L This obsoletes the WIP patches at [1]. I've settled on this being a reasonable thing to do; this series tries to do it in a more maintainable way. Compared to the WIP series, it is also more careful about writing out the inserted head name. It again repeats the patch adding a test message in mbox form. [1]: id:20220212025503.1690413-1-david@tethera.net