(nnimap-split-to-groups): Allow group string to be a
authorSimon Josefsson <jas@extundo.com>
Wed, 10 Jul 2002 16:28:39 +0000 (16:28 +0000)
committerSimon Josefsson <jas@extundo.com>
Wed, 10 Jul 2002 16:28:39 +0000 (16:28 +0000)
function.  From KANEMATSU Daiji <kdaiji@bea.com>.

lisp/ChangeLog
lisp/nnimap.el

index 5466912..9073b87 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-10  Simon Josefsson  <jas@extundo.com>
+
+       * nnimap.el (nnimap-split-to-groups): Allow group string to be a
+       function.  From KANEMATSU Daiji <kdaiji@bea.com>.
+
 2002-07-09  Nevin Kapur  <Nevin Kapur <nevin@jhu.edu>
 
        * gnus-sum.el (gnus-summary-delete-article): Respect group
index 586e105..fb1c05b 100644 (file)
@@ -1154,7 +1154,10 @@ function is generally only called when Gnus is shutting down."
              (goto-char (point-min))
              (when (and (if (stringp regexp)
                             (progn
-                              (setq regrepp (string-match "\\\\[0-9&]" group))
+                              (if (not (stringp group))
+                                  (setq group (eval group))
+                                (setq regrepp
+                                      (string-match "\\\\[0-9&]" group)))
                               (re-search-forward regexp nil t))
                           (funcall regexp group))
                         ;; Don't enter the article into the same group twice.