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 ms12 with LMTPS id OFRtMznQlV9JJQAAsNZ9tg (envelope-from ) for ; Sun, 25 Oct 2020 19:21:29 +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 WPojLznQlV9oYgAAB5/wlQ (envelope-from ) for ; Sun, 25 Oct 2020 19:21:29 +0000 Received: from pb-smtp1.pobox.com (pb-smtp1.pobox.com [64.147.108.70]) (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 E05CA940149 for ; Sun, 25 Oct 2020 19:21:25 +0000 (UTC) Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id D7CB39C851; Sun, 25 Oct 2020 15:21:22 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:date:message-id:mime-version:content-transfer-encoding; s=sasl; bh=nCwaMQ/liRCiFFq8rpR9C9DELZo=; b=a2+k3JZrLLeX4uOnJxVh BBQMiLNbGX2wvJ61sTBmIS8P2LqRTfMsyd3OHb85F+xKXtmnaKrDyHAQPmmNqwjH vnwvhDGcjFsaJ+iCrHXRyMYL5vqYSFJtAPe9qRJTDD3DgPGaB7hNT5BAgdDn0XKk baFooTlELFiMw25Fm3JsDnU= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id D0A629C850; Sun, 25 Oct 2020 15:21:22 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:subject:date:message-id:mime-version:content-transfer-encoding; s=mesmtp; bh=XJnCrNM95VpDZnOgVNTSuraErTd9AAbIFfVwSQFyYkM=; b=WkMLlRfbKAPow2Gs6p58rtTccV7/Ci003yrQPPsqlTrbCPjVlG7ucFJxDqpUh0CG9DcYz1LpvBRfIgs+bUcu2wmlxMMrx1eXchOE12OkmBHQM82+sJeWs4PAVv0izFTSouRPukFXBBmaGcmy+mIUahtrkQ1SFHNCeaWgAmNbaBI= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 384A29C84F; Sun, 25 Oct 2020 15:21:22 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: piem@inbox.kyleam.com Subject: [PATCH] b4: Remove temporary directory on "missing mbox" error Date: Sun, 25 Oct 2020 15:21:11 -0400 Message-Id: <20201025192111.27439-1-kyle@kyleam.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-Pobox-Relay-ID: 443C89AA-16F7-11EB-BBC5-D152C8D8090B-24757444!pb-smtp1.pobox.com Content-Transfer-Encoding: quoted-printable X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=a2+k3JZr; dkim=fail (body hash did not verify) header.d=kyleam.com header.s=mesmtp header.b=WkMLlRfb; dmarc=none; spf=pass (aspmx1.migadu.com: domain of kyle@kyleam.com designates 64.147.108.70 as permitted sender) smtp.mailfrom=kyle@kyleam.com X-Spam-Score: 2.50 X-TUID: vIsJvkzS+/Nk As of 30defdb (b4: Clean up temporary directories by default, 2020-09-27), piem-b4-am-from-mid is supposed to clean up its temporary directory unless piem-b4-keep-temp-directory is non-nil. That commit, however, missed an error case where the cleanup function needs to be triggered. --- piem-b4.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/piem-b4.el b/piem-b4.el index 31bf6f1..27ecf19 100644 --- a/piem-b4.el +++ b/piem-b4.el @@ -101,6 +101,8 @@ (defun piem-b4--get-am-files (mid coderepo args) mbox-cover) (if (file-exists-p mbox-am) mbox-am + (when clean-fn + (funcall clean-fn)) (error "Expected mbox file does not exist: %s" mbox-am)) clean-fn)))) =20 base-commit: 442472a37da221c7c5f961870a2b6b53b1c18e81 --=20 2.28.0