unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] emacs: Fix mis-named argument to notmuch-get-bodypart-internal
@ 2012-03-27  1:40 Austin Clements
  2012-03-27  6:19 ` Tomi Ollila
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Austin Clements @ 2012-03-27  1:40 UTC (permalink / raw)
  To: notmuch

Previously, this function took an argument called "message-id", even
though it was a general query, rather than a message ID.  This changes
it to "query".
---
 emacs/notmuch-lib.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index 2e367b5..4b17ecc 100644
--- a/emacs/notmuch-lib.el
+++ b/emacs/notmuch-lib.el
@@ -219,13 +219,13 @@ the given type."
 
 ;; Helper for parts which are generally not included in the default
 ;; JSON output.
-(defun notmuch-get-bodypart-internal (message-id part-number process-crypto)
+(defun notmuch-get-bodypart-internal (query part-number process-crypto)
   (let ((args '("show" "--format=raw"))
 	(part-arg (format "--part=%s" part-number)))
     (setq args (append args (list part-arg)))
     (if process-crypto
 	(setq args (append args '("--decrypt"))))
-    (setq args (append args (list message-id)))
+    (setq args (append args (list query)))
     (with-temp-buffer
       (let ((coding-system-for-read 'no-conversion))
 	(progn
-- 
1.7.7.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-31 11:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-27  1:40 [PATCH] emacs: Fix mis-named argument to notmuch-get-bodypart-internal Austin Clements
2012-03-27  6:19 ` Tomi Ollila
2012-03-29  1:46 ` Jameson Graef Rollins
2012-03-29  2:08   ` Austin Clements
2012-03-29  2:23     ` Jameson Graef Rollins
2012-03-31 11:32 ` David Bremner
2012-03-31 11:33 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).