From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84045 Path: news.gmane.org!not-for-mail From: Chris Warburton Newsgroups: gmane.emacs.gnus.general Subject: Errors parsing .newsrc Date: Fri, 10 Jan 2014 11:51:54 +0000 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1130cefe384c4d04ef9c5a68 X-Trace: ger.gmane.org 1389370319 18909 80.91.229.3 (10 Jan 2014 16:11:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jan 2014 16:11:59 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32297@lists.math.uh.edu Fri Jan 10 17:12:06 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 1W1egk-00051V-96 for ding-account@gmane.org; Fri, 10 Jan 2014 17:12:02 +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 1W1efh-0003KN-KV; Fri, 10 Jan 2014 10:10:57 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1W1ad9-0002D4-Io for ding@lists.math.uh.edu; Fri, 10 Jan 2014 05:52:03 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1W1ad8-0002Db-2C for ding@lists.math.uh.edu; Fri, 10 Jan 2014 05:52:03 -0600 Original-Received: from mail-qc0-f173.google.com ([209.85.216.173]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1W1ad6-000078-9a for ding@gnus.org; Fri, 10 Jan 2014 12:52:00 +0100 Original-Received: by mail-qc0-f173.google.com with SMTP id i8so298116qcq.32 for ; Fri, 10 Jan 2014 03:51:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=aKylgPmloj4XiPURbOnkFh0RJuh9RVNgyxnuzFDv0Uk=; b=wcgkuq+HfTF/jMkTE47LGeQGYoowb3oDxWzlbAUkDeJNxMfFTOCg9jotXVFiSOLI2g n46q+0YKmc96nznc2oLueCsZyVJOaHCr63cqk/0p98yiBEh1ez1NSY9zI4M3tR8Af3UE OxCX5hlKg8Ui3JBqli7109Y9Kla8bUkwAebX+M0BnYYEFnfyS7ZKByAzb8ZSzUChYs9H BxTll++6tDcKlSma4CTVqxX4r/LwW0N1mQZmXQ+fWuEoGrElOX6sgTRH/Tebr3xd0vM6 DcUUk1y1Y8/DzSUQ1Ofmz+5WxvWAYPC2SqXuB+8dMNivis5WqTPURS9/1Lf1YfRCVgYp fAWw== X-Received: by 10.224.95.69 with SMTP id c5mr6487065qan.64.1389354714417; Fri, 10 Jan 2014 03:51:54 -0800 (PST) Original-Received: by 10.224.182.9 with HTTP; Fri, 10 Jan 2014 03:51:54 -0800 (PST) X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84045 Archived-At: --001a1130cefe384c4d04ef9c5a68 Content-Type: text/plain; charset=ISO-8859-1 Hello, I've recently upgraded Ubuntu and Gnus is now failing to parse my .newsrc. gnus-version says Gnus v5.13 emacs-version says GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.6) of 2014-01-03 on gold, modified by Debian I use Gnus with nnimap and nnrss. Here's a snippet of my .newsrc: Deleted Messages: 1 INBOX! 1-8766 InvoiceTests: 1-17 Jira: Jira/ETraining: 1-213 Jira/Git: 1-1485 Jira/Git Binaries: 1-165 Jira/Hadoop: 1-3117 Jira/Internal Support: 1-3559 Jira/SHARK: 1-87 Jira/SO: 1-71 Jira/SPARK: 1-20 Jira/SVN: 1-1479 Jira/WHC: 1-75 Jira/Web: 1-2034 Recurly: 1-25 Subscription Errors: 1-3330 Workspace: 1-152 [Gmail]: [Gmail]/All Mail! 1-1961,1963-3148,3150-3151, (and so on) These are all IMAP folders (Gmail "tags"). When Gnus starts I'm getting messages like these: Opening connection to imap.gmail.com via tls... Opening connection to imap.gmail.com...done Saving file /home/chris/.newsrc-dribble... Wrote /home/chris/.newsrc-dribble [2 times] Gnus auto-save file exists. Do you want to read it? (y or n) n Reading /home/chris/.newsrc.eld... Reading /home/chris/.newsrc... Mangled line: Deleted Messages: 1 Mangled line: Jira/Git Binaries: 1-165 Mangled line: Jira/Internal Support: 1-3559 Mangled line: Subscription Errors: 1-3330 if: Wrong type argument: symbolp, [Gmail] 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. Has anyone seen issues like this before? Thanks, Chris --001a1130cefe384c4d04ef9c5a68 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello, I've re= cently upgraded Ubuntu and Gnus is now failing to parse my .newsrc.

=
gnus-version says Gnus v5.13
emacs-version says GNU Emacs 24= .3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.6) of 2014-01-03 on gold, modif= ied by Debian

I use Gnus with nnimap and nnrss. Here's a snippet of my .new= src:

Deleted Messages: 1
INBOX! 1-8766
InvoiceTests: 1-17
J= ira:
Jira/ETraining: 1-213
Jira/Git: 1-1485
Jira/Git Binaries: 1-1= 65
Jira/Hadoop: 1-3117
Jira/Internal Support: 1-3559
Jira/SHARK: 1-87Jira/SO: 1-71
Jira/SPARK: 1-20
Jira/SVN: 1-1479
Jira/WHC: 1-75Jira/Web: 1-2034
Recurly: 1-25
Subscription Errors: 1-3330
Worksp= ace: 1-152
[Gmail]:
[Gmail]/All Mail! 1-1961,1963-3148,3150-3151, (and so on)
These are all IMAP folders (Gmail "tags"). When Gnus star= ts I'm getting messages like these:

Opening connection to imap.gmail.com via tls...
Opening connection to imap.gmail.com...done
Saving file /home/chris/.new= src-dribble...
Wrote /home/chris/.newsrc-dribble [2 times]
Gnus auto-= save file exists.=A0 Do you want to read it? (y or n)=A0 n
Reading /home= /chris/.newsrc.eld...
Reading /home/chris/.newsrc...
Mangled line: Deleted Messages: 1
Mang= led line: Jira/Git Binaries: 1-165
Mangled line: Jira/Internal Support: = 1-3559
Mangled line: Subscription Errors: 1-3330
if: Wrong type argum= ent: symbolp, [Gmail]

It looks like the gnus-newsrc-to-gnus-format function isn't p= arsing spaces in the group names, eg. it reads "Deleted", then ch= ecks if it's subscribed by comparing the next character " " t= o ":", which is false, then it starts looking for ranges. Since &= quot;Messages" isn't a valid range, it gives the "Mangled lin= e" error. I tried removing a space from a call to "skip-chars-for= ward", 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 argume= nt", I tried removing the "[Gmail]:" line but it made no dif= ference.

Has anyone seen issues like this before?

Thanks,
= Chris
--001a1130cefe384c4d04ef9c5a68--