From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/26982 Path: main.gmane.org!not-for-mail From: Lloyd Zusman Newsgroups: gmane.emacs.gnus.general Subject: Re: Request for opinions as to feasibility of a Gnus application. Date: 16 Nov 1999 15:34:20 -0500 Organization: Linux Hippopotamus Preserve Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035164088 22227 80.91.224.250 (21 Oct 2002 01:34:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:34:48 +0000 (UTC) Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id PAA05234 for ; Tue, 16 Nov 1999 15:35:27 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id OAB03351; Tue, 16 Nov 1999 14:35:24 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 16 Nov 1999 14:35:36 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id OAA23195 for ; Tue, 16 Nov 1999 14:35:16 -0600 (CST) Original-Received: from ljz.net (gnus@ljz.net [205.230.65.138]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id PAA05227 for ; Tue, 16 Nov 1999 15:34:34 -0500 (EST) Original-Received: (from gnus@localhost) by ljz.net (8.8.7/8.8.7) id PAA27298; Tue, 16 Nov 1999 15:34:20 -0500 Original-To: ding@gnus.org X-Face: "!ga1s|?LNLE3MeeeEYs(%LIl9q[xV9!j4#xf4!**BFW_ihlOb;:Slb>)vy>CJM writes: > Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > > > I think I don't grok what you're trying to do, as you can see from the > > following stupid question: why don't you put a URL in the article and > > then use W3 to download the URL? > > Or, if it has to be asynchronous, define a viewer. > > Like: Have the nntp server just return normal > things in the description > articles. When the user hits `RET' on that link, have > `browse-url-browser-function' set to your own function that would call > an external, say, Perl script that would download the image to the > local disk and then call xv on it, or whatever. > > Or just let the browse-url function just call Netscape, and then let > it do the rest. That would also work asynchronously. Thank you. This sounds like a good approach for the user to use within a single article, but I also have a twist to add: I'd like for the user to be able to mark in some way more than one article and then for all the remote files that correspond to each of these articles that were selected (not necessarily images, they could also be PDF's, .doc files, text files, whatever ... even .html files) to be asynchronously downloaded en masse and stored in a local directory. I came up with this structure, but I'm not sure if it's the best way to do what I want: (let ((processable gnus-newsgroup-processable) article) (while processable (setq article (car processable)) (setq processable (cdr processable)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Find the item in the given article and ;;; ;;; use `browse-url-browser-function' or some such ;;; ;;; thing to queue up an asynchronous download to be ;;; ;;; performed by Perl or whatever. ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; )) Given my desire to allow a group of articles to be processed, would this particular and `browse-url-browser-function' approach be the most efficient? Also, ideally, I'd prefer to avoid Perl or any non-elisp-based software, because I can't control what the users might have installed on their machines, other than Gnus. I know that I could use `efs-copy-file-internal' with the `nowait' argument set in order to do the asynchronous downloads, but is there some other way to do this asynchronously and en masse via URL's so that I could still use the `browse-url-...' function(s)? Thanks again, in advance. -- Lloyd Zusman ljz@asfast.com