Fix nnimap lexical conversion problem

* lisp/gnus/nnimap.el (nnimap-process-expiry-targets): Fix problem
introduced when converting to lexical binding -- `set' alters the
dynamic value (bug#48577).
This commit is contained in:
Alex Bochannek 2021-05-28 01:19:38 +02:00 committed by Lars Ingebrigtsen
parent 24c9657746
commit 327accb38f

View file

@ -1076,7 +1076,9 @@ during splitting, which may be slow."
"UID COPY %s %S")
(nnimap-article-ranges (gnus-compress-sequence articles))
(nnimap-group-to-imap (gnus-group-real-name nnmail-expiry-target)))
(set (if can-move 'deleted-articles 'articles-to-delete) articles))))
(if can-move
(setq deleted-articles articles)
(setq articles-to-delete articles)))))
t)
(t
(dolist (article articles)