info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: '&' in group names breaks nnimap


From: Steve Purcell
Subject: Re: '&' in group names breaks nnimap
Date: Mon, 01 Aug 2011 14:29:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (darwin)

Steve Purcell <steve@sanityinc.com> 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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]