Gnus development mailing list
 help / color / mirror / Atom feed
* Problem with nnrss-generate-download-script
@ 2012-09-07  9:27 Charles Philip Chan
  2012-09-07 12:06 ` Antoine Levitt
  0 siblings, 1 reply; 9+ messages in thread
From: Charles Philip Chan @ 2012-09-07  9:27 UTC (permalink / raw)
  To: ding

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

Hi all:

As I am using nnrss more for some of the rss/atom feeds that I have
subscribed to, I would like to use local feeds to speed things
up. However, the script generated by "nnrss-generate-download-script"
does not contain all the feeds that I have subscribe to. After searching
the web, I found this post with the same problem that I described:

    http://article.gmane.org/gmane.emacs.gnus.general/57656

Sure enough, the variable "nnrss-server-data" does not contain all of
the entries that I have added with "G R". Does any one knows what is
going on here?

Thanks.

Charles

-- 
"Whip me.  Beat me.  Make me maintain AIX."
(By Stephan Zielinski)

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with nnrss-generate-download-script
  2012-09-07  9:27 Problem with nnrss-generate-download-script Charles Philip Chan
@ 2012-09-07 12:06 ` Antoine Levitt
  2012-09-07 12:21   ` Charles Philip Chan
  0 siblings, 1 reply; 9+ messages in thread
From: Antoine Levitt @ 2012-09-07 12:06 UTC (permalink / raw)
  To: ding

09/07/2012 11:27, Charles Philip Chan
> Hi all:
>
> As I am using nnrss more for some of the rss/atom feeds that I have
> subscribed to, I would like to use local feeds to speed things
> up. However, the script generated by "nnrss-generate-download-script"
> does not contain all the feeds that I have subscribe to. After searching
> the web, I found this post with the same problem that I described:
>
>     http://article.gmane.org/gmane.emacs.gnus.general/57656
>
> Sure enough, the variable "nnrss-server-data" does not contain all of
> the entries that I have added with "G R". Does any one knows what is
> going on here?
>
> Thanks.
>
> Charles

Hi Charles,

I have no idea about your problem. Just in case you didn't know about
this, I think it's much easier to use gwene (http://gwene.org) and read
your RSS feeds from nntp.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with nnrss-generate-download-script
  2012-09-07 12:06 ` Antoine Levitt
@ 2012-09-07 12:21   ` Charles Philip Chan
  2012-09-07 12:40     ` Adam Sjøgren
  0 siblings, 1 reply; 9+ messages in thread
From: Charles Philip Chan @ 2012-09-07 12:21 UTC (permalink / raw)
  To: ding

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

Antoine Levitt <antoine.levitt@gmail.com> writes:

Hi Antoine:

> I have no idea about your problem. Just in case you didn't know about
> this, I think it's much easier to use gwene (http://gwene.org) and
> read your RSS feeds from nntp.

Yes, I use Gwene for my Technical RSS feeds and News. However, there are
a few non-technical feeds that I would like to control directly. I do
not want to pollute Gwene with too many non-technical feeds.

Cheers,
Charles

-- 
"...[Linux's] capacity to talk via any medium except smoke signals."
(By Dr. Greg Wettstein, Roger Maris Cancer Center)

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with nnrss-generate-download-script
  2012-09-07 12:21   ` Charles Philip Chan
@ 2012-09-07 12:40     ` Adam Sjøgren
  2012-09-07 13:09       ` Charles Philip Chan
  0 siblings, 1 reply; 9+ messages in thread
From: Adam Sjøgren @ 2012-09-07 12:40 UTC (permalink / raw)
  To: ding

On Fri, 07 Sep 2012 08:21:07 -0400, Charles wrote:

> I do not want to pollute Gwene with too many non-technical feeds.

I do that without any scruples... http://gwene.org/ says "Sign up any
RSS/Atom feed", which I took literally.

(It is of course fine to want to use nnrss for some feeds :-))


  Best regards,

    Adam

-- 
 "Hur långt man än har kommit                                 Adam Sjøgren
  är det alltid längre kvar"                             asjo@koldfront.dk




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with nnrss-generate-download-script
  2012-09-07 12:40     ` Adam Sjøgren
@ 2012-09-07 13:09       ` Charles Philip Chan
  2012-09-07 14:06         ` Antoine Levitt
  0 siblings, 1 reply; 9+ messages in thread
From: Charles Philip Chan @ 2012-09-07 13:09 UTC (permalink / raw)
  To: ding

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

asjo@koldfront.dk (Adam Sjøgren) writes:

> I do that without any scruples... http://gwene.org/ says "Sign up any
> RSS/Atom feed", which I took literally.

Yes, you are right. I ended up just subscribing through Gwene.

> (It is of course fine to want to use nnrss for some feeds :-))

ROTFL

Cheers,
Charles

-- 
"Even more amazing was the realization that God has Internet access.  I
wonder if He has a full newsfeed?"
(By Matt Welsh)

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with nnrss-generate-download-script
  2012-09-07 13:09       ` Charles Philip Chan
@ 2012-09-07 14:06         ` Antoine Levitt
  2012-09-07 14:16           ` Charles Philip Chan
  0 siblings, 1 reply; 9+ messages in thread
From: Antoine Levitt @ 2012-09-07 14:06 UTC (permalink / raw)
  To: ding

09/07/2012 15:09, Charles Philip Chan
> asjo@koldfront.dk (Adam Sjøgren) writes:
>
>> I do that without any scruples... http://gwene.org/ says "Sign up any
>> RSS/Atom feed", which I took literally.
>
> Yes, you are right. I ended up just subscribing through Gwene.
>
>> (It is of course fine to want to use nnrss for some feeds :-))
>
> ROTFL
>
> Cheers,
> Charles

I too have some feeds I don't want on gwene. What I do is I have a local
leafnode server running (added benefit : no latency for gnus). Leafnode
mirrors gwene on the feeds I'm interesed in, and I also have local
groups (available from leafnode 2, I believe), which I fill with the
software for gwene that Lars published
(https://github.com/larsmagne/gwene). It works fine.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with nnrss-generate-download-script
  2012-09-07 14:06         ` Antoine Levitt
@ 2012-09-07 14:16           ` Charles Philip Chan
  2012-09-07 14:42             ` Antoine Levitt
  0 siblings, 1 reply; 9+ messages in thread
From: Charles Philip Chan @ 2012-09-07 14:16 UTC (permalink / raw)
  To: ding

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

Antoine Levitt <antoine.levitt@gmail.com> writes:

Hi Antoine:

> I too have some feeds I don't want on gwene. What I do is I have a local
> leafnode server running (added benefit : no latency for gnus). Leafnode
> mirrors gwene on the feeds I'm interesed in, and I also have local
> groups (available from leafnode 2, I believe), which I fill with the
> software for gwene that Lars published
> (https://github.com/larsmagne/gwene). It works fine.

Ah, I also use Leafnode. I didn't know the software behind Gwene will
work with Leafnode. Thanks for the pointer.

Cheers,
Charles

-- 
"On a normal ascii line, the only safe condition to detect is a 'BREAK'
- everything else having been assigned functions by Gnu EMACS."
(By Tarl Neustaedter)

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Problem with nnrss-generate-download-script
  2012-09-07 14:16           ` Charles Philip Chan
@ 2012-09-07 14:42             ` Antoine Levitt
  0 siblings, 0 replies; 9+ messages in thread
From: Antoine Levitt @ 2012-09-07 14:42 UTC (permalink / raw)
  To: ding

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

09/07/2012 16:16, Charles Philip Chan
> Antoine Levitt <antoine.levitt@gmail.com> writes:
>
> Hi Antoine:
>
>> I too have some feeds I don't want on gwene. What I do is I have a local
>> leafnode server running (added benefit : no latency for gnus). Leafnode
>> mirrors gwene on the feeds I'm interesed in, and I also have local
>> groups (available from leafnode 2, I believe), which I fill with the
>> software for gwene that Lars published
>> (https://github.com/larsmagne/gwene). It works fine.
>
> Ah, I also use Leafnode. I didn't know the software behind Gwene will
> work with Leafnode. Thanks for the pointer.

If you use it (or if anybody finds this thread with the goal to run
gwene on their personal computer, and has trouble like me finding what
libraries are needed), here's a trivial patch that fixes a couple of
issues and includes comments on how to install on a debian-like distro.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch-fetch-rss.diff --]
[-- Type: text/x-diff, Size: 2124 bytes --]

diff --git a/fetch-rss b/fetch-rss
index 953b0ef..bb64d15 100755
--- a/fetch-rss
+++ b/fetch-rss
@@ -1,8 +1,16 @@
 #!/usr/bin/perl
+# require "/usr/local/src/XML-TreePP-0.41/blib/lib/XML/TreePP.pm";
+# require "/usr/local/src/XML-FeedPP-0.42/blib/lib/XML/FeedPP.pm";
 
-require "/usr/local/src/XML-TreePP-0.41/blib/lib/XML/TreePP.pm";
-require "/usr/local/src/XML-FeedPP-0.42/blib/lib/XML/FeedPP.pm";
-#use XML::FeedPP;
+
+# On debian :
+# mkdir /var/tmp/gwene
+# install curl libdigest-sha-perl libxml-feedpp-perl libberkeleydb-perl libdb5.1-dev
+# perl -MCPAN -e shell
+# install Digest::SHA1
+# install BerkeleyDB
+
+use XML::FeedPP;
 use Encode qw/encode decode/;
 use Date::Parse;
 use POSIX qw(strftime);
@@ -90,17 +98,23 @@ sub my_description {
 
 
 $tmp = "/tmp/feed.$$.rss";
-system("curl", "-s", "-o", $tmp, "-m", "5", "-L",
-       "-A", "Gwene/1.0 (The gwene.org rss-to-news gateway)",
-       $source);
-if ($? != 0) {
-    if (-f $tmp) {
-	unlink $tmp;
+if($source =~ /http/) {
+    system("curl", "--compressed", "-s", "-S", "-o", $tmp, "-m", "10", "-L",
+	   "-A", "Gwene/1.0 (The gwene.org rss-to-news gateway)", "--retry", "3",
+	   $source);
+    if ($? != 0) {
+	if (-f $tmp) {
+	    unlink $tmp;
+	}
+	exit;
     }
-    exit;
 }
+else {
+    system("cp", $source, $tmp)
+}
+
 
-system("/home/larsi/gwene/encode-content", $tmp, "$tmp.code");
+system("encode-content", $tmp, "$tmp.code");
 rename "$tmp.code", $tmp;
 
 eval {
@@ -212,7 +226,7 @@ foreach my $item (reverse @items) {
 	$skip = 1;
     } else {
 	if (! $nntp) {
-	    @nntp = ("news.gmane.org");
+	    @nntp = ("localhost");
 	    $nntp = Net::NNTP->new(@nntp) || die "cannot connect to NNTP server";
 	}
 	for ($i = 1; $i < 10; $i++) {
@@ -300,8 +314,9 @@ foreach my $item (reverse @items) {
 	    undef @art;
 	    undef $art;
 	    $a = 0;
-	    $nntp->quit;
-	    $nntp = Net::NNTP->new(@nntp) || die "cannot connect to NNTP server";
+	    # why is this here?
+	    # $nntp->quit;
+	    # $nntp = Net::NNTP->new(@nntp) || die "cannot connect to NNTP server";
 	    
 	    if ($old_newsgroups) {
 		@groups = split(/,/, $old_newsgroups);

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Problem with nnrss-generate-download-script
@ 2004-05-23 18:48 Nevin Kapur
  0 siblings, 0 replies; 9+ messages in thread
From: Nevin Kapur @ 2004-05-23 18:48 UTC (permalink / raw)


I've noticed that some of the rss feeds that I add don't get entries
in nnrss-server-data so that n-g-d-s does not have entries
corresponding to them.

For example: `G R http://arxiv.org/rss/math.PR RET RET RET' adds a
feed but when I run n-g-d-s, I don't get an wget entry for this feed.
Looking at the code I see that it iterates through the elements of
nnrss-server-data.  Sure enough my n-s-d doesn't have any entry for
this feed but I can't figure out why.

-Nevin




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-09-07 14:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-07  9:27 Problem with nnrss-generate-download-script Charles Philip Chan
2012-09-07 12:06 ` Antoine Levitt
2012-09-07 12:21   ` Charles Philip Chan
2012-09-07 12:40     ` Adam Sjøgren
2012-09-07 13:09       ` Charles Philip Chan
2012-09-07 14:06         ` Antoine Levitt
2012-09-07 14:16           ` Charles Philip Chan
2012-09-07 14:42             ` Antoine Levitt
  -- strict thread matches above, loose matches on Subject: below --
2004-05-23 18:48 Nevin Kapur

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).