From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:863f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms12 with LMTPS id GLIuFqFDdGGwSgAAsNZ9tg (envelope-from ); Sat, 23 Oct 2021 17:17:21 +0000 Received: from out1.migadu.com ([2001:41d0:2:863f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id MNzrEaFDdGGMUwAAbx9fmQ (envelope-from ); Sat, 23 Oct 2021 17:17:21 +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=1635009440; 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; bh=tcCoLfwHghIXUkPN2cSZeA2ItMTkf9R0H3ejZP1HOCM=; b=zcXEINBKKXHq2JIEIByF7nc2s0hbwZtQVoJEAX+ChropoM1vQZgqsCwuX1Vjs1Cbld05h/ F06EV/O6O1skzwcmckEy6FIwnw7d+kg7RDabTUowFi63ay7P4C5T5fu927lGrn76aa0ZMT FdXr1scNpdrIo7ygXQbTsZSFiyCEd3fR1zJthFVzq/UH5li2119aEbXZ6g1UTozX0hzBeM XRVJL7ng4rZoruehqaLf8oaCIKaV4MZrjs0bBeGI7nXKULq3ocI3HrbA1WNP4KCPrysuFl uU1EU3SG9ETH/oOqA3iSNRCdqRbOPEO+yoIQ1oACcrpuMgsbS/QfomRehfV2xg== From: Kyle Meyer To: piem@inbox.kyleam.com Subject: [PATCH] piem-notmuch-known-mid-p: Autoload Date: Sat, 23 Oct 2021 13:16:51 -0400 Message-Id: <20211023171651.167143-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: sHjQuz9H3FTd Allow users to set piem-mail-injection-skipif-predicate to piem-notmuch-known-mid-p without worrying about whether piem-notmuch.el is loaded. --- piem-notmuch.el | 1 + 1 file changed, 1 insertion(+) diff --git a/piem-notmuch.el b/piem-notmuch.el index 1da554a4..c7123665 100644 --- a/piem-notmuch.el +++ b/piem-notmuch.el @@ -55,6 +55,7 @@ (defun piem-notmuch-get-mid () "Return the message ID of a `notmuch-show-mode' buffer." (notmuch-show-get-message-id 'bare)) +;;;###autoload (defun piem-notmuch-known-mid-p (mid) "Return non-nil if MID is known to Notmuch. The message ID should not include Notmuch's \"id:\" prefix or base-commit: b0d43bfd23d8f5f86db63d2409743398b08f9d4e -- 2.33.1