mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +01:00
emacs: Fix mis-named argument to notmuch-get-bodypart-internal
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".
This commit is contained in:
parent
4ba18958b5
commit
839a80513a
1 changed files with 2 additions and 2 deletions
|
@ -220,13 +220,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
|
||||
|
|
Loading…
Reference in a new issue