When using a search engine to index Pipermail archives, it is very
useful if the modification time of each individual HTML file corresponds
to the actual time when the message was sent. This permits to easily
sort search results by message dates.
Unfortunately, when archives are regenerated using 'arch', the
modification time of all the HTML files is reset to the current time.
Here is a trivial patch that always sets the modification time of the
HTML files to the message date:
--- HyperArch.…
[View More]py.orig 2005-05-31 20:02:40.000000000 +0200
+++ HyperArch.py 2005-05-31 20:02:45.000000000 +0200
@@ -1295,3 +1295,4 @@
os.umask(omask)
f.write(article.as_html())
f.close()
+ os.utime(filename, (int(article.date), int(article.date)))
What do you think?
(If you want to see how this information can be used in practice, try
for example the "last modified date" link on one of my web site's
results page: http://geuz.org/search/search-geuz.cgi?q=extrude)
Cheers,
Christophe
--
Christophe Geuzaine
Applied and Computational Mathematics, Caltech
geuzaine(a)acm.caltech.edu - http://geuz.org
[View Less]
I'm getting an error that is just beyond my abilities to interpret.
This is on debian sarge, running mailman 2.1.5. This actually worked
just a bit ago, and now I'm getting this. I'm just not sure where to
look for what changed.
talon:/var/lib/mailman/bin# ./withlist -l -r fix_url.py trilug
Importing fix_url...
Running fix_url.py()...
Traceback (most recent call last):
File "./withlist", line 275, in ?
main()
File "./withlist", line 250, in main
func = getattr(mod, …
[View More]callable)
AttributeError: 'module' object has no attribute 'py'
What's going on here?
Thanks,
Joel
[View Less]