Gnus development mailing list
 help / color / mirror / Atom feed
* Patch To Fetch Messages From Google
@ 2002-04-10 17:39 Kalle Kivimaa
  2002-04-10 17:53 ` Henrik Enberg
  2002-04-27 17:57 ` ShengHuo ZHU
  0 siblings, 2 replies; 14+ messages in thread
From: Kalle Kivimaa @ 2002-04-10 17:39 UTC (permalink / raw)


If a message id is not found on the server, the following patch will
then try to fetch the message from Google (in a separate browser
window). Just something that came up in Sfnet :)

--- gnus-sum.el Wed Apr 10 20:37:24 2002
+++ gnus-sum-orig.el    Wed Apr 10 20:36:46 2002
@@ -7653,8 +7653,7 @@
            (when (setq number (gnus-summary-insert-subject message-id))
              (gnus-summary-select-article nil nil nil number)
              (throw 'found t)))
-         (browse-url (concat "http://groups.google.com/groups?as_umsgid="
-                              message-id "&hl=en"))))))))
+         (gnus-message 3 "Couldn't fetch article %s" message-id)))))))

 (defun gnus-refer-article-methods ()
   "Return a list of referrable methods."




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

* Re: Patch To Fetch Messages From Google
  2002-04-10 17:39 Patch To Fetch Messages From Google Kalle Kivimaa
@ 2002-04-10 17:53 ` Henrik Enberg
  2002-04-10 18:11   ` Reiner Steib
  2002-04-27 17:57 ` ShengHuo ZHU
  1 sibling, 1 reply; 14+ messages in thread
From: Henrik Enberg @ 2002-04-10 17:53 UTC (permalink / raw)
  Cc: ding

Kalle Kivimaa <killer@iki.fi> writes:

> If a message id is not found on the server, the following patch will
> then try to fetch the message from Google (in a separate browser
> window). Just something that came up in Sfnet :)

This should probably be an option.  It might be annoying for people
with metered access.

-- 
I acted to show my love for Jodie Foster.



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

* Re: Patch To Fetch Messages From Google
  2002-04-10 17:53 ` Henrik Enberg
@ 2002-04-10 18:11   ` Reiner Steib
  2002-04-10 20:26     ` minor bugs with negative article numbers (was: Patch To Fetch Messages From Google) Dan Christensen
       [not found]     ` <3229146396458393@oakhurst.yi.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Reiner Steib @ 2002-04-10 18:11 UTC (permalink / raw)


On Wed, Apr 10 2002, Henrik Enberg wrote:

[fetching article by MID from google]

> This should probably be an option.  It might be annoying for people
> with metered access.

It already _is_ an option:

,----[ C-h v gnus-refer-article-method RET ]
| gnus-refer-article-method's value is shown below.
| 
| Documentation:
| Preferred method for fetching an article by Message-ID.
| [...]
| It can also be a list of select methods, as well as the special symbol
| `current', which means to use the current select method.  If it is a
| list, Gnus will try all the methods in the list until it finds a match.
| [...]
| Value:
| (current
|  (nntp "localhost")
|  (nntp "news.gnus.org")
|  (nntp "news.gmane.org")
|  (nnweb "google"
| 	(nnweb-type google)))
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/



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

* minor bugs with negative article numbers (was: Patch To Fetch Messages From Google)
  2002-04-10 18:11   ` Reiner Steib
@ 2002-04-10 20:26     ` Dan Christensen
  2002-04-10 21:22       ` Kai Großjohann
  2002-04-11  7:50       ` Simon Josefsson
       [not found]     ` <3229146396458393@oakhurst.yi.org>
  1 sibling, 2 replies; 14+ messages in thread
From: Dan Christensen @ 2002-04-10 20:26 UTC (permalink / raw)


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

Reiner Steib <4uce.02.r.steib@gmx.net> writes:

> ,----[ C-h v gnus-refer-article-method RET ]
> | gnus-refer-article-method's value is shown below.
> | 
> | Documentation:
> | Preferred method for fetching an article by Message-ID.
> | [...]
> | It can also be a list of select methods, as well as the special symbol
> | `current', which means to use the current select method.  If it is a
> | list, Gnus will try all the methods in the list until it finds a match.
> | [...]
> | Value:
> | (current
> |  (nntp "localhost")
> |  (nntp "news.gnus.org")
> |  (nntp "news.gmane.org")
> |  (nnweb "google"
> | 	(nnweb-type google)))
> `----

This is a great feature!  While playing with it, here are some
problems I noticed.  I hit ^ to make Gnus find a news article that had
expired from one of my nntp groups.  Gnus used google to bring the
article in, and the article looked fine, except that it had a few
garbage characters at the bottom.  Then I used `B c' to copy the
article to an nnfolder group, and there the article didn't appear
in the summary because it was corrupted:  there is a garbage line
in the second line of the header, and there is garbage at the end.
I've attached the article as it appear in my nnfolder file.

Another minor comment:  Gnus won't let me `!' an article, but it
will let me `d' and `E' it.  Not sure if this inconsistency is
intentional.

And a final comment:  each time I view the article, Gnus downloads
it again from google.  I guess avoiding this would be difficult?

-- 
Dan Christensen
jdc+news@uwo.ca


[-- Attachment #2: bad-article2 --]
[-- Type: application/octet-stream, Size: 1106 bytes --]

From nobody Wed Apr 10 16:21:43 2002
3d2
Message-ID: <3CA3D327.8090306@onlinetesting.net>
From: Jordan Hiller <jhiller@onlinetesting.net>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1
X-Accept-Language: en-us
MIME-Version: 1.0
Newsgroups: rec.climbing
Subject: Re: Climbing in Alberta Canada
References: <a7r7s7$2qk$1@newsg1.svr.pol.co.uk>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Date: Fri, 29 Mar 2002 02:34:28 GMT
NNTP-Posting-Host: 161.184.161.175
X-Trace: news1.telusplanet.net 1017369268 161.184.161.175 (Thu, 28 Mar 2002 19:34:28 MST)
NNTP-Posting-Date: Thu, 28 Mar 2002 19:34:28 MST
Lines: 20
Xref: localhost spam:241
X-Gnus-Article-Number: 241   Wed Apr 10 16:21:43 2002


I'm in Edmonton and just starting to look for summer outdoor places. A few 
decent URLs:

http://www.gripped.com/New/ClimbCanada/alberta/
http://www.worldweb.com/parkscanada-banff/climbing.html
http://www.compusmart.ab.ca/resqdyn/acc/

Silverfox wrote:

> Can anyone give me any info on climbing in Alberta ?
> 
> 
> 




0


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

* Re: minor bugs with negative article numbers (was: Patch To Fetch Messages From Google)
  2002-04-10 20:26     ` minor bugs with negative article numbers (was: Patch To Fetch Messages From Google) Dan Christensen
@ 2002-04-10 21:22       ` Kai Großjohann
  2002-04-11  7:50       ` Simon Josefsson
  1 sibling, 0 replies; 14+ messages in thread
From: Kai Großjohann @ 2002-04-10 21:22 UTC (permalink / raw)


Dan Christensen <jdc+news@uwo.ca> writes:

> From nobody Wed Apr 10 16:21:43 2002
> 3d2
> Message-ID: <3CA3D327.8090306@onlinetesting.net>

This must be R2D2 trying to hide, but not quite succeeding.

"telnet blinkenlights.towel.nl" anyone?

kai
-- 
Silence is foo!



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

* Re: minor bugs with negative article numbers (was: Patch To Fetch Messages From Google)
  2002-04-10 20:26     ` minor bugs with negative article numbers (was: Patch To Fetch Messages From Google) Dan Christensen
  2002-04-10 21:22       ` Kai Großjohann
@ 2002-04-11  7:50       ` Simon Josefsson
  2002-04-11 10:56         ` minor bugs with negative article numbers Reiner Steib
  1 sibling, 1 reply; 14+ messages in thread
From: Simon Josefsson @ 2002-04-11  7:50 UTC (permalink / raw)
  Cc: ding

On Wed, 10 Apr 2002, Dan Christensen wrote:

> This is a great feature!  While playing with it, here are some
> problems I noticed.  I hit ^ to make Gnus find a news article that had
> expired from one of my nntp groups.  Gnus used google to bring the
> article in, and the article looked fine, except that it had a few
> garbage characters at the bottom.  Then I used `B c' to copy the
> article to an nnfolder group, and there the article didn't appear
> in the summary because it was corrupted:  there is a garbage line
> in the second line of the header, and there is garbage at the end.
> I've attached the article as it appear in my nnfolder file.

This seems to be a URL bug:

(url-insert-file-contents  
"http://groups.google.com/groups?selm=1f8fd51.1sjfq9b1u3kq7yN%tells@nowhere.invalid&output=gplain")

returns a trailing ^M.

If I fetch the URL with wget, there is no ^M.

> Another minor comment:  Gnus won't let me `!' an article, but it
> will let me `d' and `E' it.  Not sure if this inconsistency is
> intentional.

I think so, the article doesn't have an article number so it is difficult
to mark.  The reason d and E work is probably that it already was marked
as read, so pressing d or E doesn't result in any action.

> And a final comment:  each time I view the article, Gnus downloads
> it again from google.  I guess avoiding this would be difficult?

The backlog doesn't handle non-integer articles.  In fact, the backlog 
doesn't seem get invoked at all when I fetch articles using nnweb.




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

* Re: minor bugs with negative article numbers
  2002-04-11  7:50       ` Simon Josefsson
@ 2002-04-11 10:56         ` Reiner Steib
  2002-04-11 12:09           ` Simon Josefsson
  0 siblings, 1 reply; 14+ messages in thread
From: Reiner Steib @ 2002-04-11 10:56 UTC (permalink / raw)


On Thu, Apr 11 2002, Simon Josefsson wrote:

> On Wed, 10 Apr 2002, Dan Christensen wrote:
[...]
>> in the summary because it was corrupted:  there is a garbage line
>> in the second line of the header, and there is garbage at the end.
>> I've attached the article as it appear in my nnfolder file.
>
> This seems to be a URL bug:
>
> (url-insert-file-contents  
> "http://groups.google.com/groups?selm=1f8fd51.1sjfq9b1u3kq7yN%tells@nowhere.invalid&output=gplain")
>
> returns a trailing ^M.
>
> If I fetch the URL with wget, there is no ^M.

I don't receive any garbage (^M) with my version of url.el [1]. For
both MIDs (Simon's <1f8fd51.1sjfq9b1u3kq7yN%tells@nowhere.invalid> and
Dan's <3CA3D327.8090306@onlinetesting.net>), I receive correct
articles using the above mentioned call of `url-insert-file-contents'.

Bye, Reiner.

[1]
,----[ C-h v url-version RET ]
| url-version's value is "p4.0pre.44"
`----
;;; url.el --- Uniform Resource Locator retrieval tool
;; Author: wmperry
;; Created: 1999/04/08 11:47:48
;; Version: 1.11
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/



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

* Re: minor bugs with negative article numbers
  2002-04-11 10:56         ` minor bugs with negative article numbers Reiner Steib
@ 2002-04-11 12:09           ` Simon Josefsson
  2002-04-11 15:40             ` Harry Putnam
  2002-04-12  1:51             ` Dan Christensen
  0 siblings, 2 replies; 14+ messages in thread
From: Simon Josefsson @ 2002-04-11 12:09 UTC (permalink / raw)
  Cc: ding

On Thu, 11 Apr 2002, Reiner Steib wrote:

> > This seems to be a URL bug:
> >
> > (url-insert-file-contents  
> > "http://groups.google.com/groups?selm=1f8fd51.1sjfq9b1u3kq7yN%tells@nowhere.invalid&output=gplain")
> >
> > returns a trailing ^M.
> >
> > If I fetch the URL with wget, there is no ^M.
> 
> I don't receive any garbage (^M) with my version of url.el [1]. For
> both MIDs (Simon's <1f8fd51.1sjfq9b1u3kq7yN%tells@nowhere.invalid> and
> Dan's <3CA3D327.8090306@onlinetesting.net>), I receive correct
> articles using the above mentioned call of `url-insert-file-contents'.

cvs up (of url) solved the problem for me.  Sorry for the false alarm.




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

* Re: minor bugs with negative article numbers
  2002-04-11 12:09           ` Simon Josefsson
@ 2002-04-11 15:40             ` Harry Putnam
  2002-04-11 19:16               ` Simon Josefsson
  2002-04-12  1:51             ` Dan Christensen
  1 sibling, 1 reply; 14+ messages in thread
From: Harry Putnam @ 2002-04-11 15:40 UTC (permalink / raw)


Simon Josefsson <jas@extundo.com> writes:

> cvs up (of url) solved the problem for me.  Sorry for the false alarm.
Simon,
When I try to cvs update either url or w3, for the last (several)
mnths.  I get this message:

   cvs server: Updating .
   cvs server: cannot open directory /cvs/url: No such file or directory
   cvs server: skipping directory 

And no update occurs.  Trying a new checkout gives me
/cvs/url: no such repository.

Maybe I'm using an old address?
cvs -d :pserver:anoncvs@subversions.gnu.org:/cvs

That is the one that appears in url/CVS/Root
Ditto w3.



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

* Re: minor bugs with negative article numbers
  2002-04-11 15:40             ` Harry Putnam
@ 2002-04-11 19:16               ` Simon Josefsson
  2002-04-11 20:19                 ` Harry Putnam
  0 siblings, 1 reply; 14+ messages in thread
From: Simon Josefsson @ 2002-04-11 19:16 UTC (permalink / raw)
  Cc: ding

Harry Putnam <reader@newsguy.com> writes:

>    cvs server: Updating .
>    cvs server: cannot open directory /cvs/url: No such file or directory
>    cvs server: skipping directory 
>
> And no update occurs.  Trying a new checkout gives me
> /cvs/url: no such repository.
>
> Maybe I'm using an old address?
> cvs -d :pserver:anoncvs@subversions.gnu.org:/cvs

Try :pserver:anoncvs@subversions.gnu.org:/cvsroot/url.  (and s/url/w3/)




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

* Re: minor bugs with negative article numbers
  2002-04-11 19:16               ` Simon Josefsson
@ 2002-04-11 20:19                 ` Harry Putnam
  0 siblings, 0 replies; 14+ messages in thread
From: Harry Putnam @ 2002-04-11 20:19 UTC (permalink / raw)


Simon Josefsson <jas@extundo.com> writes:

> Harry Putnam <reader@newsguy.com> writes:
>
>>    cvs server: Updating .
>>    cvs server: cannot open directory /cvs/url: No such file or directory
>>    cvs server: skipping directory 
>>
>> And no update occurs.  Trying a new checkout gives me
>> /cvs/url: no such repository.
>>
>> Maybe I'm using an old address?
>> cvs -d :pserver:anoncvs@subversions.gnu.org:/cvs
>
> Try :pserver:anoncvs@subversions.gnu.org:/cvsroot/url.  (and s/url/w3/)

Yeah, sorry about the line noise.  I figured it out shortly after posting



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

* Re: minor bugs with negative article numbers
  2002-04-11 12:09           ` Simon Josefsson
  2002-04-11 15:40             ` Harry Putnam
@ 2002-04-12  1:51             ` Dan Christensen
  1 sibling, 0 replies; 14+ messages in thread
From: Dan Christensen @ 2002-04-12  1:51 UTC (permalink / raw)


Simon Josefsson <jas@extundo.com> writes:

> On Thu, 11 Apr 2002, Reiner Steib wrote:
>
>> > This seems to be a URL bug:
>> >
>> > (url-insert-file-contents  
>> > "http://groups.google.com/groups?selm=1f8fd51.1sjfq9b1u3kq7yN%tells@nowhere.invalid&output=gplain")
>> >
>> > returns a trailing ^M.
>> >
>> > If I fetch the URL with wget, there is no ^M.
>> 
>> I don't receive any garbage (^M) with my version of url.el [1]. For
>> both MIDs (Simon's <1f8fd51.1sjfq9b1u3kq7yN%tells@nowhere.invalid> and
>> Dan's <3CA3D327.8090306@onlinetesting.net>), I receive correct
>> articles using the above mentioned call of `url-insert-file-contents'.
>
> cvs up (of url) solved the problem for me.  Sorry for the false alarm.

I just did a cvs up of url, w3 and gnus, and that fixed most of the
problem.  I still get a ^M at the bottom of the message, but that
doesn't affect the functioning of Gnus as the headers are fine.

My url.el says 1.12 at the top, and url-version is "Exp".

Thanks for the help!

Dan

-- 
Dan Christensen
jdc+news@uwo.ca



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

* Re: Patch To Fetch Messages From Google
  2002-04-10 17:39 Patch To Fetch Messages From Google Kalle Kivimaa
  2002-04-10 17:53 ` Henrik Enberg
@ 2002-04-27 17:57 ` ShengHuo ZHU
  1 sibling, 0 replies; 14+ messages in thread
From: ShengHuo ZHU @ 2002-04-27 17:57 UTC (permalink / raw)


Kalle Kivimaa <killer@iki.fi> writes:

> If a message id is not found on the server, the following patch will
> then try to fetch the message from Google (in a separate browser
> window). Just something that came up in Sfnet :)
>
> --- gnus-sum.el Wed Apr 10 20:37:24 2002
> +++ gnus-sum-orig.el    Wed Apr 10 20:36:46 2002
> @@ -7653,8 +7653,7 @@
>             (when (setq number (gnus-summary-insert-subject message-id))
>               (gnus-summary-select-article nil nil nil number)
>               (throw 'found t)))
> -         (browse-url (concat "http://groups.google.com/groups?as_umsgid="
> -                              message-id "&hl=en"))))))))
> +         (gnus-message 3 "Couldn't fetch article %s" message-id)))))))
>
>  (defun gnus-refer-article-methods ()
>    "Return a list of referrable methods."

IMHO, adding (nnweb "" (nnweb-type google)) into
gnus-refer-article-method is a better solution.

ShengHuo



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

* Re: Patch To Fetch Messages From Google
       [not found]     ` <3229146396458393@oakhurst.yi.org>
@ 2002-04-30 11:07       ` Kai Großjohann
  0 siblings, 0 replies; 14+ messages in thread
From: Kai Großjohann @ 2002-04-30 11:07 UTC (permalink / raw)
  Cc: ding

Thomas Skogestad <tskogest@jusstud.uio.no> writes:

> And when I try to fetch an old article, I just get "No such article (may
> have expired or been canceled)", even though Google has it. Do I need some
> sort of special program installed?

You need the URL and/or W3 package.  (W3-4.0pre47 or so includes URL,
W3 from CVS does not include URL, so you need URL from CVS, as well.)

kai
-- 
Silence is foo!



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

end of thread, other threads:[~2002-04-30 11:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-10 17:39 Patch To Fetch Messages From Google Kalle Kivimaa
2002-04-10 17:53 ` Henrik Enberg
2002-04-10 18:11   ` Reiner Steib
2002-04-10 20:26     ` minor bugs with negative article numbers (was: Patch To Fetch Messages From Google) Dan Christensen
2002-04-10 21:22       ` Kai Großjohann
2002-04-11  7:50       ` Simon Josefsson
2002-04-11 10:56         ` minor bugs with negative article numbers Reiner Steib
2002-04-11 12:09           ` Simon Josefsson
2002-04-11 15:40             ` Harry Putnam
2002-04-11 19:16               ` Simon Josefsson
2002-04-11 20:19                 ` Harry Putnam
2002-04-12  1:51             ` Dan Christensen
     [not found]     ` <3229146396458393@oakhurst.yi.org>
2002-04-30 11:07       ` Patch To Fetch Messages From Google Kai Großjohann
2002-04-27 17:57 ` ShengHuo ZHU

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