Steve Purcell <[email protected]> writes:
> I poked around in nnimap.el, and applying utf7-decode to the group names
> returned by nnimap-get-groups makes the mailboxes accessible, but
> phantom copies of the groups with the escaped names still end up in the group
> list after quitting and re-entering Gnus.

To clarify, the following patch gets things
working. gnus-group-check-bogus-groups seems to correctly remove the old
still-escaped groups.

I suspect that there are a few other places in nnimap.el which aren't
consistently escaping/unescaping group names.

-Steve


--- a/lisp/gnus/nnimap.el       2011-07-26 12:25:53.000000000 +0100
+++ b/lisp/gnus/nnimap.el       2011-08-01 14:16:45.000000000 +0100
@@ -1107,9 +1107,9 @@
            (separator (read (current-buffer)))
            (group (read (current-buffer))))
        (unless (member '%NoSelect flags)
-         (push (if (stringp group)
-                   group
-                 (format "%s" group))
+         (push (utf7-decode (if (stringp group)
+                                group
+                              (format "%s" group)) t)
                groups))))
     (nreverse groups)))
 
@@ -1168,7 +1168,7 @@
                       (nnimap-get-groups)))
        (unless (assoc group nnimap-current-infos)
          ;; Insert dummy numbers here -- they don't matter.
-         (insert (format "%S 0 1 y\n" group))))
+         (insert (format "%S 0 1 y\n" (utf7-encode group)))))
       t)))
 
 (deffoo nnimap-retrieve-group-data-early (server infos)


_______________________________________________
info-gnus-english mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to