Trevor Murphy
2014-11-11 01:09:21 UTC
This change should not affect the behavior of the function. We build
a list then format it with the "%s" specification, as opposed to
writing the list structure directly into format's string argument.
---
lisp/gnus/nnimap.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index ad48d47..390ccd5 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -166,14 +166,18 @@ textual parts.")
(nnimap-find-process-buffer nntp-server-buffer))
(defun nnimap-header-parameters ()
- (format "(UID RFC822.SIZE BODYSTRUCTURE %s)"
- (format
+ (let (l)
+ (push "UID" l)
+ (push "RFC822.SIZE" l)
+ (push "BODYSTRUCTURE" l)
+ (push (format
(if (nnimap-ver4-p)
"BODY.PEEK[HEADER.FIELDS %s]"
"RFC822.HEADER.LINES %s")
(append '(Subject From Date Message-Id
References In-Reply-To Xref)
- nnmail-extra-headers))))
+ nnmail-extra-headers)) l)
+ (format "%s" (nreverse l))))
(deffoo nnimap-retrieve-headers (articles &optional group server fetch-old)
(when group
a list then format it with the "%s" specification, as opposed to
writing the list structure directly into format's string argument.
---
lisp/gnus/nnimap.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index ad48d47..390ccd5 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -166,14 +166,18 @@ textual parts.")
(nnimap-find-process-buffer nntp-server-buffer))
(defun nnimap-header-parameters ()
- (format "(UID RFC822.SIZE BODYSTRUCTURE %s)"
- (format
+ (let (l)
+ (push "UID" l)
+ (push "RFC822.SIZE" l)
+ (push "BODYSTRUCTURE" l)
+ (push (format
(if (nnimap-ver4-p)
"BODY.PEEK[HEADER.FIELDS %s]"
"RFC822.HEADER.LINES %s")
(append '(Subject From Date Message-Id
References In-Reply-To Xref)
- nnmail-extra-headers))))
+ nnmail-extra-headers)) l)
+ (format "%s" (nreverse l))))
(deffoo nnimap-retrieve-headers (articles &optional group server fetch-old)
(when group
--
2.1.3
2.1.3