From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84352 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: what's wrong in gnus-topic-mode with nnimap? Date: Mon, 10 Mar 2014 13:03:42 +0800 Message-ID: <87zjkytzkh.fsf@ericabrahamsen.net> References: <8761nnfkui.fsf@building.gnus.org> <874n36ito4.fsf@126.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1394427684 30069 80.91.229.3 (10 Mar 2014 05:01:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2014 05:01:24 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32598@lists.math.uh.edu Mon Mar 10 06:01:33 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WMsLE-0005cB-6g for ding-account@gmane.org; Mon, 10 Mar 2014 06:01:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1WMsL9-00060U-Ln; Mon, 10 Mar 2014 00:01:27 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1WMsL8-00060H-EC for ding@lists.math.uh.edu; Mon, 10 Mar 2014 00:01:26 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1WMsL4-0002DT-DE for ding@lists.math.uh.edu; Mon, 10 Mar 2014 00:01:26 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1WMsL3-0002LE-1K for ding@gnus.org; Mon, 10 Mar 2014 06:01:21 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WMsL1-0005Te-Co for ding@gnus.org; Mon, 10 Mar 2014 06:01:19 +0100 Original-Received: from 114.248.1.149 ([114.248.1.149]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Mar 2014 06:01:19 +0100 Original-Received: from eric by 114.248.1.149 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Mar 2014 06:01:19 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 63 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.248.1.149 User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:vTloxHtBqGTkr9vsbvO0bs3gzwo= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84352 Archived-At: --=-=-= Content-Type: text/plain Easior Lars writes: >>>>>> "LI" == Lars Ingebrigtsen 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: --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=gnus-server-fix.patch Content-Transfer-Encoding: 8bit 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 --=-=-=--