From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:aacc::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms12 with LMTPS id YAIsDUfNqmBvLAAAsNZ9tg (envelope-from ); Sun, 23 May 2021 21:46:47 +0000 Received: from out2.migadu.com ([2001:41d0:2:aacc::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WITpNELNqmDEWAAA1q6Kng (envelope-from ); Sun, 23 May 2021 21:46:42 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1621806402; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bIaeMQulG0v0wo1VIsRiY7ZHZ0O+yDPYquwOge393ns=; b=vHFJJyLHeTAtf8ysdpqT6qI6Fw66p36BROTS21u8OKJ63bHbW9J0DYp9dRuW+A85fqBzQc AWmLFq/YWoet3y4uCgsDw8dCo8uBqBX3rhThry4VJQghV5GTXC0Vr/IFsyyPnpWBfFx0j9 8xCuCDcdhcAdNi5/aVIZu/cxUMifjFvIUMFKLFn4BVGeL14T6CO3pWLo2uYH33TuJ9KQDy 1LbOxGrQq7Lc64Pg6/b5OrFI1zoKzs2L+lORjq59qIzMav3NGATMk/lyg/nIMxrbYw1PPQ hCC+XQtSh0/Uudw7DT/VH1qtPBU0Jjw4kiMcDl4uBmFoEaDn3jbR3dwW7Bjtgg== From: Kyle Meyer To: piem@inbox.kyleam.com Subject: [PATCH 5/5] piem-gunzip-buffer: Don't assume t.mbox.gz is being decompressed Date: Sun, 23 May 2021 17:46:23 -0400 Message-Id: <20210523214623.31331-6-kyle@kyleam.com> In-Reply-To: <20210523214623.31331-1-kyle@kyleam.com> References: <20210523214623.31331-1-kyle@kyleam.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyle@kyleam.com X-TUID: XKYfr0xjqoNc If the gunzip call fails, piem-gunzip-buffer says "Decompressing t.mbox.gz failed". All the piem-gunzip-buffer callers at the moment do use to decompress t.mbox.gz downloads, but that's of course not something this function should assume or know about. --- piem.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piem.el b/piem.el index 25b7afe..2626643 100644 --- a/piem.el +++ b/piem.el @@ -536,7 +536,7 @@ (defun piem-gunzip-buffer () (user-error "gunzip executable not found")) (goto-char (point-min)) (unless (= 0 (call-process-region nil nil "gunzip" nil t)) - (error "Decompressing t.mbox.gz failed")) + (error "Decompressing buffer failed")) (delete-region (point) (point-max)) (goto-char (point-min))) -- 2.31.1