From: Austin Clements <amdragon@MIT.EDU>
To: notmuch@notmuchmail.org
Subject: [PATCH] emacs: Fix mis-named argument to notmuch-get-bodypart-internal
Date: Mon, 26 Mar 2012 21:40:26 -0400 [thread overview]
Message-ID: <1332812426-26684-1-git-send-email-amdragon@mit.edu> (raw)
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
next reply other threads:[~2012-03-27 1:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-27 1:40 Austin Clements [this message]
2012-03-27 6:19 ` [PATCH] emacs: Fix mis-named argument to notmuch-get-bodypart-internal 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1332812426-26684-1-git-send-email-amdragon@mit.edu \
--to=amdragon@mit.edu \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).