Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: jidanni@jidanni.org
Cc: ding@gnus.org
Subject: Re: nnrss-generate-download-script wrong-type-argument
Date: Tue, 16 Dec 2008 11:25:32 -0600	[thread overview]
Message-ID: <86y6ygjalv.fsf@lifelogs.com> (raw)
In-Reply-To: <87d4fu5d48.fsf@jidanni.org> (jidanni@jidanni.org's message of "Mon, 15 Dec 2008 11:30:31 +0800")

On Mon, 15 Dec 2008 11:30:31 +0800 jidanni@jidanni.org wrote: 

j> It turns out that often, one's nnrss-server-data has accrued several
j> junk groups that do not have exact matches in nnrss-group-alist.

j> This will cause nnrss-generate-download-script to fail mid-sentence
j> upon stumbling upon one.

j> It should be more cautious, and skip over such items.

Agreed, + a warning.

j> Better yet, there should be a way for the user to clean out such
j> zombies the proper way (instead of doing surgery on whatever deep
j> dark files store them behind gnus' back.)

nnrss, when loading, could find such problems and offer to eliminate
them.  Is that a good solution?  I'd rather not introduce a special new
command only 2 people will ever use.

Ted

j> Proof:
j> (let ((nnrss-group-alist '(
j>  ("DreamHost Discussion Board POSTS" "http://discussion.dreamhost.com/feeds/all_posts.rss" "EVERY post on the DreamHost Discussion Board!")
j>  ("DreamHost Discussion Board" "http://discussion.dreamhost.com/feeds/all_threads.rss" "All threads on the DreamHost Discussion Board!")
j>  ("訂閱苦勞 性別 的文章" "http://www.coolloud.org.tw/tag/%E6%80%A7%E5%88%A5/feed" "次頁面的list - tag")
j>  ("DebCentral" "http://debcentral.org/backend.php" "The Center for all things Debian based")))

j> (nnrss-server-data 
j> '(
j>  ("訂閱苦勞 性別 的文章" 116)
j>  ("DreamHost Discussion Board POSTS" 726)
j>  ("DreamHostDiscussion Board POSTS" 100) ;no corresponding entry. BOOM.
j>  ("DreamHost Discussion Board" 50)
j>  ("DebCentral" 25))))

j> (nnrss-generate-download-script)) ^X^E
j> #!/bin/sh
j> WGET=wget
j> RSSDIR='/home/jidanni/News/rss/'
j> $WGET -q -O "$RSSDIR"/'訂閱苦勞 性別 的文章.xml' 'http://www.coolloud.org.tw/tag/%E6%80%A7%E5%88%A5/feed'
j> $WGET -q -O "$RSSDIR"/'DreamHost Discussion Board POSTS.xml' 'http://discussion.dreamhost.com/feeds/all_posts.rss'
j> $WGET -q -O "$RSSDIR"/'DreamHostDiscussion Board POSTS.xml' '

-- 



      reply	other threads:[~2008-12-16 17:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-12  1:22 jidanni
2008-12-12 21:49 ` Ted Zlatanov
2008-12-15  3:30   ` jidanni
2008-12-16 17:25     ` Ted Zlatanov [this message]

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=86y6ygjalv.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=ding@gnus.org \
    --cc=jidanni@jidanni.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).