Gnus development mailing list
 help / color / mirror / Atom feed
From: Chris Warburton <chriswarbo@googlemail.com>
To: ding@gnus.org
Subject: Errors parsing .newsrc
Date: Fri, 10 Jan 2014 11:51:54 +0000	[thread overview]
Message-ID: <CAMdGyq8MHkHKYQmnpfFb2dq=YPmEr_H2EoYq0NBr-WsprjNj+Q@mail.gmail.com> (raw)

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

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

[-- Attachment #2: Type: text/html, Size: 2453 bytes --]

             reply	other threads:[~2014-01-10 11:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-10 11:51 Chris Warburton [this message]
2014-01-11  2:47 ` Eric Abrahamsen
2014-01-11 13:09   ` Chris Warburton
2014-01-12  9:12     ` Eric Abrahamsen
2014-01-13  9:20       ` Chris Warburton
2014-01-13 11:04         ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMdGyq8MHkHKYQmnpfFb2dq=YPmEr_H2EoYq0NBr-WsprjNj+Q@mail.gmail.com' \
    --to=chriswarbo@googlemail.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).