Gnus development mailing list
 help / color / mirror / Atom feed
* what's wrong in gnus-topic-mode with nnimap?
@ 2012-12-06  3:27 Easior Lars
  2014-03-09 15:33 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Easior Lars @ 2012-12-06  3:27 UTC (permalink / raw)
  To: ding

Hi, all.

I works in gnus with the setting

,----------------------------------------------------------
| (add-to-list 'gnus-secondary-select-methods 
|         '(nnimap "GMAIL"
|                 (nnimap-address "imap.gmail.com")
|                 (nnimap-user "xxx@gmail.com")            
|                 (nnimap-server-port 993)
|                 (nnimap-stream ssl)
|                 (nnir-search-engine imap)
|                 (nnimap-inbox "Inbox")
|                 (nnimap-fetch-partial-articles "text/")))
`----------------------------------------------------------

It is always fine. However, there is a defect that is boring me long
time. When I start up gnus with 'm+x gnus', I will see 

   ,----------------------------------------------
   | |   3[     0|  0]     * :nnimap+GMAIL:[Gmail]
   `----------------------------------------------

in the gnus-topic mode. It is weird that there is nothing in this
group and it can't be entered into. The report of bugtrace is as
follows

,------------------------------------------------------------------------------------------------------------------------------------------
| Debugger entered--Lisp error: (error "Couldn't activate group nnimap+GMAIL:[Gmail]: NO (NONEXISTENT) Unknown Mailbox: (Gmail) (Failure)")
|   signal(error ("Couldn't activate group nnimap+GMAIL:[Gmail]: NO (NONEXISTENT) Unknown Mailbox: (Gmail) (Failure)"))
|   error("Couldn't activate group %s: %s" "nnimap+GMAIL:[Gmail]" "NO (NONEXISTENT) Unknown Mailbox: (Gmail) (Failure)")
|   gnus-select-newsgroup("nnimap+GMAIL:[Gmail]" nil nil)
|   gnus-summary-read-group-1("nnimap+GMAIL:[Gmail]" nil t nil nil nil)
|   gnus-summary-read-group("nnimap+GMAIL:[Gmail]" nil t nil nil nil nil)
|   gnus-group-read-group(nil t)
|   gnus-group-select-group(nil)
|   gnus-topic-select-group(nil)
|   call-interactively(gnus-topic-select-group nil nil)
`------------------------------------------------------------------------------------------------------------------------------------------

It is annoying that this group can't be deleted by 'G+DEL'. 

Anyone can help me?

Thanks in advance.

-- 
Best regards,

Easior
-----
Ich bin von heute und ehedam, aber etwas ist in mir, das ist vor
morgen und übermorgen und einstmal.

                                     Friedrich Wilhelm Nietzsche




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: what's wrong in gnus-topic-mode with nnimap?
  2012-12-06  3:27 what's wrong in gnus-topic-mode with nnimap? Easior Lars
@ 2014-03-09 15:33 ` Lars Ingebrigtsen
  2014-03-10  4:06   ` Easior Lars
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2014-03-09 15:33 UTC (permalink / raw)
  To: ding

Easior Lars <easior@126.com> writes:

> It is annoying that this group can't be deleted by 'G+DEL'. 

Just kill it with `C-k'.  Gmail is reporting a group that doesn't exist.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: what's wrong in gnus-topic-mode with nnimap?
  2014-03-09 15:33 ` Lars Ingebrigtsen
@ 2014-03-10  4:06   ` Easior Lars
  2014-03-10  5:03     ` Eric Abrahamsen
  0 siblings, 1 reply; 4+ messages in thread
From: Easior Lars @ 2014-03-10  4:06 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: ding

>>>>> "LI" == Lars Ingebrigtsen <larsi@gnus.org> writes:

    >>  It is annoying that this group can't be deleted by 'G+DEL'. 

    LI> Just kill it with `C-k'.  Gmail is reporting a group that doesn't exist.
`c-k' does not take effects. In fact, this group will appear again
after gnus restarts next time.
    LI> -- 
    LI> (domestic pets only, the antidote for overdose, milk.)
    LI> bloggy blog http://lars.ingebrigtsen.no/

-- 
Best regards,

Easior
-----
Ich bin von heute und ehedam, aber etwas ist in mir, das ist vor
morgen und übermorgen und einstmal.

                                     Friedrich Wilhelm Nietzsche




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: what's wrong in gnus-topic-mode with nnimap?
  2014-03-10  4:06   ` Easior Lars
@ 2014-03-10  5:03     ` Eric Abrahamsen
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Abrahamsen @ 2014-03-10  5:03 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 1402 bytes --]

Easior Lars <easior@126.com> writes:

>>>>>> "LI" == Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>     >>  It is annoying that this group can't be deleted by 'G+DEL'. 
>
>     LI> Just kill it with `C-k'.  Gmail is reporting a group that doesn't exist.
> `c-k' does not take effects. In fact, this group will appear again
> after gnus restarts next time.
>     LI> -- 
>     LI> (domestic pets only, the antidote for overdose, milk.)
>     LI> bloggy blog http://lars.ingebrigtsen.no/

It's possible that you're seeing something that I ran into a while
earlier. When `nnimap-get-groups' is called, to retrieve all the names
of the groups on the server, it sometimes reads the group names
incorrectly if they have characters that confuse the call to `read'. Try
edebugging nnimap-get-groups and stepping through it until the response
comes back from the LIST command, then look at the buffer and see what's
there. It's possible a group name is being read incorrectly.

It's also just possible that gnus is somehow barfing on the imaginary
"[Gmail]" group that gmail likes to make. But I was able to visit the
server's group list from the *Server* buffer and just kill the group
there, as Lars mentioned.

If it's really mis-reading the group name, you can try fooling with the
local patch I use, which is ugly and probably highly dangerous for
reasons I haven't thought of, but at least Works For Me:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: gnus-server-fix.patch --]
[-- Type: text/x-diff, Size: 762 bytes --]

1 file changed, 6 insertions(+), 1 deletion(-)
 lisp/nnimap.el | 7 ++++++-

	Modified   lisp/nnimap.el
diff --git a/lisp/nnimap.el b/lisp/nnimap.el
index 1730bd4..4e07495 100644
--- a/lisp/nnimap.el
+++ b/lisp/nnimap.el
@@ -1230,7 +1230,12 @@ If LIMIT, first try to limit the search to the N last articles."
     (while (search-forward "* LIST " nil t)
       (let ((flags (read (current-buffer)))
 	    (separator (read (current-buffer)))
-	    (group (read (current-buffer))))
+	    (group (buffer-substring-no-properties
+		    (progn (skip-chars-forward " \"")
+			   (point))
+		    (progn (move-end-of-line 1)
+			   (skip-chars-backward " \"
")
+			   (point)))))
 	(unless (member '%NoSelect flags)
 	  (push (utf7-decode (if (stringp group)
 				 group

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-10  5:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-06  3:27 what's wrong in gnus-topic-mode with nnimap? Easior Lars
2014-03-09 15:33 ` Lars Ingebrigtsen
2014-03-10  4:06   ` Easior Lars
2014-03-10  5:03     ` Eric Abrahamsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).