* wl-summary.el (wl-summary-goto-folder-subr): Protect current
[elisp/wanderlust.git] / wl / wl-fldmgr.el
index 058c3e0..b84d9ed 100644 (file)
@@ -1268,7 +1268,8 @@ return value is diffs '(-new -unread -all)."
          (if (string= petname old-petname)
              nil
            (if (or (rassoc petname wl-folder-petname-alist)
-                   (wl-string-assoc petname wl-folder-group-alist))
+                   (and is-group
+                        (wl-string-assoc petname wl-folder-group-alist)))
                (message "%s: already exists" petname)
              (wl-folder-append-petname name petname)
              (setq change t)))))