From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms12 with LMTPS id mBmWHITeOV+XDwAAsNZ9tg (envelope-from ) for ; Mon, 17 Aug 2020 01:33:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2E9CGITeOV/KCgAAbx9fmQ (envelope-from ) for ; Mon, 17 Aug 2020 01:33:56 +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 5C29794051D for ; Mon, 17 Aug 2020 01:33:55 +0000 (UTC) Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 75BCF683D6; Sun, 16 Aug 2020 21:33:53 -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:in-reply-to:references:mime-version :content-transfer-encoding; s=sasl; bh=xEOruaj7njKpsBiAj2ffWV0rW N0=; b=yF2fB5eaerZNKIZOy/iLRe1X0bHphX0jej39t9ssa81G+QxkKWv9Okfzh yBwRMJ6ndS6lZSCqsF9BTfjFGHObTXLnrQjeQwlqKdKsf8xIYRYG7hqd0QmPMEnB ZhQh/J2HQjDhnMeDN/EwmgkqCn1m96QclgTZQnUpD5TXe2S+YA= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 6D7A8683D5; Sun, 16 Aug 2020 21:33:53 -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:in-reply-to:references:mime-version:content-transfer-encoding; s=mesmtp; bh=t2uiBHZqDNJWZhgDG2sWcjcFUJKibpnNz18ovbmHe1Y=; b=oiG7Au9pD0blshjf/LPKo6D3P9RrX9kJSXkm40Clh8JTT+XIOSAccNqPEIKjTSAIrsjkF4dPIO/kbFL00S911JpR/Oqs3W/1bgze/9V5OQMYMHuhxmVtogxFzwaNmzXVjrfSq3EvT+8GlLbMGPtFXvoDEQif1UfayvVWQV5GX2g= 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 E7E4B683D4; Sun, 16 Aug 2020 21:33:52 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: piem@inbox.kyleam.com Subject: [PATCH 1/5] Use url-http-end-of-headers move to payload Date: Sun, 16 Aug 2020 21:33:39 -0400 Message-Id: <20200817013343.15615-2-kyle@kyleam.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817013343.15615-1-kyle@kyleam.com> References: <20200817013343.15615-1-kyle@kyleam.com> MIME-Version: 1.0 X-Pobox-Relay-ID: B562969C-E029-11EA-B04A-01D9BED8090B-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=yF2fB5ea; dkim=fail (body hash did not verify) header.d=kyleam.com header.s=mesmtp header.b=oiG7Au9p; 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: mRuxw6KtLpzS --- piem.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/piem.el b/piem.el index 6a3c2b3..bcbec78 100644 --- a/piem.el +++ b/piem.el @@ -33,6 +33,8 @@ (require 'rfc2047) (require 'subr-x) (require 'url) =20 +(defvar url-http-end-of-headers) + =0C ;;;; Options =20 @@ -397,7 +399,7 @@ (defun piem--inject-thread-callback (status mid messa= ge-only) (let ((error-status (plist-get status :error))) (if error-status (signal (car error-status) (cdr error-status)) - (search-forward "\n\n") + (goto-char (1+ url-http-end-of-headers)) (delete-region (point-min) (point)) (unless message-only (unless (=3D 0 (call-process-region nil nil "gunzip" nil t= )) --=20 2.28.0