[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: functions to download mailing list archives

From: Óscar Fuentes
Subject: Re: functions to download mailing list archives
Date: Tue, 14 Jun 2022 00:09:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

GH <> writes:

> Óscar Fuentes <> writes:
>> What I was suggesting was something like this:
>> (defun lists-mbox-recursive-url-list (url-list)
>>   (dolist (url url-list)
>>     ;; get the url's content
> yes, but the problem now is to get the urls, all mbox archive urls

You already solved that problem on your previous code, didn't you? On my
proposed variant it works the same.

>>     ;; do wathever you want with the url's content (save it, ...)
>>     ;; for each URL of interest inside the content:
>>       ;; The `t' at the end of add-to-list means to append the new element:
>>       (add-to-list 'url-list new-url t)))
>> (lists-mbox-recursive-url-list (list "";))
> I use recursion to get urls

No, you use recursion to process the pages pointed by the urls you got
from a given page.

Now, instead of recursion you add the urls to a list, which acts as a
queue, and get the urls to be processed from that list at the same time
you add new urls to the end of the list.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]