Den sön 2 jan. 2022 kl 04:29 skrev Nathan Hartman <hartman.nat...@gmail.com >:
> On Sat, Jan 1, 2022 at 10:18 PM <hartmannat...@apache.org> wrote: > > > > Author: hartmannathan > > Date: Sun Jan 2 03:18:55 2022 > > New Revision: 1896611 > > > > URL: http://svn.apache.org/viewvc?rev=1896611&view=rev > > Log: > > * staging/mailing-lists.html: > > (#list-list): Remove links to mail-archives.apache.org. This service > is > > shut down as of 31 Dec 2021 in favor of lists.apache.org. > > > > Modified: > > subversion/site/staging/mailing-lists.html > > > > Modified: subversion/site/staging/mailing-lists.html > > URL: > http://svn.apache.org/viewvc/subversion/site/staging/mailing-lists.html?rev=1896611&r1=1896610&r2=1896611&view=diff The commit LGTM, thanks! > ASF shut down the oldie but goodie mail-archives.apache.org in favor > of lists.apache.org today. > :-( This commit updates the staging site. It will need a follow-up, but I > don't (yet) know what that follow-up should be: > > Currently on our mailing lists page, we have the Google SiteSearch box > for user convenience to search the archives. This searches in the > mail-archives.apache.org domain and uses inurl:subversion as explained > in the comment there to search only in Subversion's list archives. > > With the retirement of mail-archives.apache.org, clearly this will not > work anymore. > > Maybe it'll work if I just substitute the URLs, but I'm a bit > skeptical because of the query string; i.e., whereas mail-archives > URLs looked like this: > > https://mail-archives.apache.org/mod_mbox/subversion-users/ > > lists.apache.org URLs look like this: > > https://lists.apache.org/list.html?us...@subversion.apache.org I can't find this documented anywhere but I was poking around the code [1] and it is seems to work like this. The request string consists of three parts separated by colon: - The list name (us...@subversion.apache.org etc.). It seems it can also be *@subversion.apache.org, which is probably reasonable for the search widget. - The time period. If empty it defaults to the last month, no way of saying "since forever" except faking a date long ago. For example lte=100y. - The search keyword(s). For example https://lists.apache.org/list?*@subversion.apache.org:lte=100y:site+cleanup I'm not fond of the URLs since it is impossible (at least for me) to make a plain form that translate into that kind of URL. I've sent a question to users@ponymail.a.o [2]. I can do it using javascript, see the attached patch. During our last overhaul of the page, we tried hard to make the form useable for users without javascript. However lists.a.o require javascript so that point is probably moot if we go this way, in which case the attached patch is probably ok. A downside of lists.a.o is that it doesn't contain the oldest part of the archive (neither did mail-archives.a.o). It is still searchable on svn.haxx.se. marc.info is both textfriendly and non-javascript-friendly, is up-to-date and has the older mails not in lists.a.o (except a hole in users@s.a.o between 2003-08 and 2006-04 which is only served by svn.haxx.se). It is probably a lot easier to create a form in our site linking to this site. But I'm not fond of using yet another external service. I'll wait for some comments before committing anything (or feel free to commit the patch as attached or updated). Kind regards, Daniel [1] https://github.com/apache/incubator-ponymail-foal [2] https://lists.apache.org/thread/n47hcfdt6z70tqxvnhgn3zrdwqgg36yl
Index: mailing-lists.html =================================================================== --- mailing-lists.html (revision 1896620) +++ mailing-lists.html (working copy) @@ -13,7 +13,7 @@ <meta name="theme-color" content="#98b0d4"> </head> -<body onload="document.getElementById('q').value = document.getElementById('q').value.replace(/inurl:subversion /gi, '');"> +<body> <!--#include virtual="/site-banner.html" --> <!--#include virtual="/site-nav.html" --> <div id="site-content"> @@ -35,31 +35,20 @@ <p>If you cannot find the answer in the Subversion book, please search the archives:</p> - <!-- SiteSearch Google --> - <form method="get" action="https://www.google.com/custom"> + <!-- Search in lists.apache.org --> + <form method="get" action="http://lists.apache.org/list?*@subversion.apache.org" id="f"> <p> - <input type="hidden" name="domains" value="mail-archives.apache.org" /> - <input type="hidden" name="sitesearch" value="mail-archives.apache.org" /> - <input type="hidden" name="client" value="pub-9313125053076989" /> - <input type="hidden" name="forid" value="1" /> - <input type="hidden" name="channel" value="8989477434" /> - <input type="hidden" name="ie" value="ISO-8859-1" /> - <input type="hidden" name="oe" value="ISO-8859-1" /> - <input type="hidden" name="cof" value="GALT:#0066CC;GL:1;DIV:#999999;VLC:336633;AH:center;BGC:FFFFFF;LBGC:FF9900;ALC:0066CC;LC:0066CC;T:000000;GFNT:666666;GIMP:666666;FORID:1;" /> - <input type="hidden" name="hl" value="en" /> <!-- - The value inurl:subversion is because Google sitesearch doesn't provide - a way to search just a subdirectory of a site, and we don't want matches - in other mailing lists at mail-archives.a.o. - For browsers without javascript the default value is there as a help. - For browsers with javascript the value is removed in body.onload and added - on submit to decrease clutter for the users. + The URL is not documented anywhere but it seems to consist of three parts separated by colon: + - The list name (us...@subversion.apache.org etc.). It seems it can also be *@subversion.apache.org, which is probably reasonable for the search widget. + - The time period. If empty it defaults to the last month, no way of saying "since forever" except faking a date long ago, for example lte=100y. + - The search keyword(s). --> - <input type="text" name="q" size="31" maxlength="255" value="inurl:subversion " id="q"/> - <input type="submit" name="sa" value="Search the archives" onclick="if (!document.getElementById('q').value.includes('inurl:subversion ')) { document.getElementById('q').value = 'inurl:subversion '+document.getElementById('q').value; }"/> + <input type="text" name="" size="31" maxlength="255" id="q"/> + <input type="submit" name="" value="Search" onclick="document.location=document.getElementById('f').action='https://lists.apache.org/list?*@subversion.apache.org:lte=100y:'+document.getElementById('q').value; return false;"> </p> </form> - <!-- SiteSearch Google --> + <!-- End of search in lists.apache.org --> <p> </p>