]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix nnimap lexical conversion problem
authorAlex Bochannek <alex@bochannek.com>
Thu, 27 May 2021 23:19:38 +0000 (01:19 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 27 May 2021 23:19:38 +0000 (01:19 +0200)
* lisp/gnus/nnimap.el (nnimap-process-expiry-targets): Fix problem
introduced when converting to lexical binding -- `set' alters the
dynamic value (bug#48577).

lisp/gnus/nnimap.el

index 570be49094fcb0365635c2d6eb618ca739bdfde8..f869f586d94a688b282265bcb9c71f128bceff74 100644 (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)