* lisp/gnus/nnimap.el (nnimap-split-incoming-mail): Don't call
-delete-articles on empty lists (bug#37541).
(defun nnimap-delete-article (articles)
"Delete ARTICLES."
+ (debug articles)
(with-current-buffer (nnimap-buffer)
(nnimap-command "UID STORE %s +FLAGS.SILENT (\\Deleted)"
(nnimap-article-ranges articles))
;; and possibly expunge them.
(nnimap-delete-article
(nnimap-parse-copied-articles sequences)))
- (nnimap-delete-article junk-articles)))))))
+ (when junk-articles
+ (nnimap-delete-article junk-articles))))))))
(defun nnimap-parse-copied-articles (sequences)
(let (sequence copied range)