(setq sequence (nnimap-send-command
"UID STORE %s %sFLAGS.SILENT (%s)"
(nnimap-article-ranges range)
- (if (eq action 'del)
- "-"
- "+")
+ (cond
+ ((eq action 'del) "-")
+ ((eq action 'add) "-")
+ ((eq action 'set) ""))
(mapconcat #'identity flags " ")))))))
;; Wait for the last command to complete to avoid later
;; syncronisation problems with the stream.
group message-id)))))))))
(defun nnimap-find-uid-response (name list)
- (let ((result (nth 2 (nnimap-find-response-element name list))))
+ (let ((result (car (last (nnimap-find-response-element name list)))))
(and result
(string-to-number result))))