From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84046 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Errors parsing .newsrc Date: Sat, 11 Jan 2014 09:47:29 +0700 Message-ID: <87y52nb5fi.fsf@ericabrahamsen.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1389408384 11084 80.91.229.3 (11 Jan 2014 02:46:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Jan 2014 02:46:24 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32298@lists.math.uh.edu Sat Jan 11 03:46:30 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 1W1oaj-0002lO-En for ding-account@gmane.org; Sat, 11 Jan 2014 03:46:29 +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 1W1oa1-00063r-Bj; Fri, 10 Jan 2014 20:45:45 -0600 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 1W1oZz-00063e-LJ for ding@lists.math.uh.edu; Fri, 10 Jan 2014 20:45:43 -0600 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 1W1oZx-00083C-Jf for ding@lists.math.uh.edu; Fri, 10 Jan 2014 20:45:42 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1W1oZv-0002eJ-Jv for ding@gnus.org; Sat, 11 Jan 2014 03:45:39 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W1oZu-0001aq-Sy for ding@gnus.org; Sat, 11 Jan 2014 03:45:38 +0100 Original-Received: from 223.204.249.71 ([223.204.249.71]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Jan 2014 03:45:38 +0100 Original-Received: from eric by 223.204.249.71 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Jan 2014 03:45:38 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 223.204.249.71 User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:2NTBmcLr00aT3mYi8z4DKczLUu8= X-Spam-Score: 1.1 (+) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-2398--15787h-0s--0d--H*u:Emacs, 0.000-110--720h-0s--0d--H*u:Gnus, 0.000-110--720h-0s--0d--H*UA:Gnus, 0.000-108--707h-0s--0d--H*u:linux, 0.000-108--707h-0s--0d--H*UA:linux Spam tokens: 0.991-15451--832h-74628s--0d--HTo:D*gnus.org, 0.991-16038--870h-77493s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.991-16038--870h-77493s--0d--H*RU:quimby.gnus.org, 0.989-15832--1077h-77495s--0d--HX-Spam-Relays-Internal:quimby.gnus.org, 0.989-15832--1077h-77495s--0d--H*RT:80.91.231.51 Autolearn status: no 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO -0.1 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.91.229.3 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 2.0 FSL_HELO_BARE_IP_2 FSL_HELO_BARE_IP_2 List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84046 Archived-At: Chris Warburton writes: > Hello, I've recently upgraded Ubuntu and Gnus is now failing to parse > my .newsrc. [...] > It looks like the gnus-newsrc-to-gnus-format function isn't parsing > spaces in the group names, eg. it reads "Deleted", then checks if > it's subscribed by comparing the next character " " to ":", which is > false, then it starts looking for ranges. Since "Messages" isn't a > valid range, it gives the "Mangled line" error. I tried removing a > space from a call to "skip-chars-forward", but there's a call "(read > buf)" which still stops at the space. > > I don't mind getting my hands dirty with this, but my knowledge of > Emacs Lisp isn't great. > > As for the "Wrong type argument", I tried removing the "[Gmail]:" > line but it made no difference. I had a related problem, but in the *Server* buffer, not newsrc. I patched `nnimap-get-groups' to make it read the Gmail group names correctly, but assumed since no one else was having the problem that it was something I'd screwed up locally. I don't even have a .newsrc here, just the .newsrc.eld. If you've *also* got the .newsrc.eld, you could try setting gnus-read-newsrc-file to nil temporarily, which will have it ignore the plain old .newsrc. If that works, my understanding is that it's okay to abandon the .newsrc file altogether by setting gnus-save-newsrc-file to nil. If you don't have a newsrc.eld file, then I don't know why not, and maybe someone else can suggest something. I'm on git gnus, so YMMV... Yours, eric