[Mailman-Users] Regenerate HTML pages for new URLs in pipermail

Mark Sapiro mark at msapiro.net
Fri Nov 18 12:27:09 EST 2016


On 11/18/2016 06:22 AM, Rainer Müller wrote:
> 
> However, every old mail in the HTML archive of pipermail still contains
> the old URL at the very end in the "More information about the ...
> mailing list" link. For new mails, the URL is correct.
> 
> I already tried to regenerate the archive with 'arch --wipe'. This would
> update the URL, however, this would also re-index the mbox and will
> break URLs to posts in the archive, which I would like to avoid.


If the listinfo URL has changed, Other saved URLs to archived messages
are probably already broken :(


> Is there some way to update this URL while keeping the archive URLs
> stable?


If the cumulative archives/private/listname.mbox/listname.mbox has not
been manually modified, and it contains no spurious unescaped "^From "
lines in message bodies (see bin/cleanarch and maybe
<https://www.msapiro.net/scripts/check_arch>), rebuilding the archive
with 'bin/arch --wipe' should not change the archived message numbers.


> Do I really need to go over all HTML files in the archive with a
> sed expression?


Yes. The only way to fix the listinfo URLs in the HTML archive without
running 'bin/arch --wipe' is to creat a script to do the editing on all
the files.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the Mailman-Users mailing list