aboutsummaryrefslogtreecommitdiff
path: root/piem-notmuch.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-08-09 22:07:04 -0400
committerKyle Meyer <kyle@kyleam.com>2020-08-10 21:07:32 -0400
commit0ee97e900f7daef3995284d0b4312c371b3427fa (patch)
tree275e3cc6d9bd82e8f2b7802dd11dc794af0fbabe /piem-notmuch.el
parent118643c2985c0113c179d734356fc1b9e082b4c5 (diff)
downloadpiem-0ee97e900f7daef3995284d0b4312c371b3427fa.tar.gz
Explicitly specify --patch-format in git-am calls
The sources of mbox patches fed to git-am are 1) threads downloaded from a public-inbox HTTP instance, 2) mboxes generated via piem-mid-to-thread-functions, and 3) those generated via piem-am-ready-mbox-functions. The first source should always be mboxrd. For the second, piem-notmuch-mid-to-thread is currently the only function suitable for piem-mid-to-thread-functions, and it uses mboxrd. The third source is a mix between mbox and mboxrd. By default, git-am tries to auto-detect the patch format, but let's explicitly specify --patch-format to avoid any incorrect guesses. Message-Id: <20200810020704.30150-1-kyle@kyleam.com>
Diffstat (limited to 'piem-notmuch.el')
-rw-r--r--piem-notmuch.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/piem-notmuch.el b/piem-notmuch.el
index 1e4dbb2..c9c3bed 100644
--- a/piem-notmuch.el
+++ b/piem-notmuch.el
@@ -88,9 +88,10 @@ message itself if it looks like a patch."
(plist-get part :content)))
(plist-get body :content)))))
(when patches
- (lambda ()
- (dolist (patch patches)
- (insert patch))))))))))
+ (list (lambda ()
+ (dolist (patch patches)
+ (insert patch)))
+ "mbox"))))))))
;;;###autoload
(define-minor-mode piem-notmuch-mode