(nnmail-split-it): Don't compare ".*" and VALUE of each element of
[elisp/gnus.git-] / lisp / nnmail.el
index 7d98d8c..afd852a 100644 (file)
@@ -1173,7 +1173,8 @@ See the documentation for the variable `nnmail-split-fancy' for documentation."
             partial regexp)
        (if (symbolp value)
            (setq value (cdr (assq value nnmail-split-abbrev-alist))))
-       (if (string= ".*" (substring value 0 2))
+       (if (and (>= (length value) 2)
+                (string= ".*" (substring value 0 2)))
            (setq value (substring value 2)
                  partial ""))
        (setq regexp (concat "^\\(\\("