[Mailman-Developers] Mailman web-archiver
The Dragon De Monsyne
dragondm@delta.integral.org
Thu, 27 Aug 1998 01:48:58 -0500 (CDT)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---1395546950-237318664-904200538=:1550
Content-Type: TEXT/PLAIN; charset=US-ASCII
Well, it's a bit rough, and there's a few more things i'd like to
do with it, But my free time may be scarse lately & I'm going on vacation
in a week, so I figure I'd better post this & let some folks play with it.
Anyway, this is the intgrated web-archiver module for Mailman.
For the moment, it still needs bsddb (mebbe after I get back I can try
tackling replacing that)
To get this working, here is what ye need to do:
1) Make sure you have the bsddb module compiled :P
2) Make sure you have somewhere in your PYTHONPATH
the following python modules:
a) The latest pipermail (0.0.5)
b) Digicool's DocumentTemplate package
<http://www.digicool.com/releases/bobo/DocumentTemplate-rn.html>
3) Make sure you get rid of the old pipermail 0.0.2 sitting in
the Mailman package.
4) Put HyperArch.py in the Mailman package directory.
5) Put the 'arch' script in the ${prefix}/cron directory
6) Apply the included patch.
7) add an entry like this to your crontab:
# Periodically update the webarchive.
0 3,9,17,23 * * * /usr/local/bin/python /usr/services/mailman/cron/arch
Notes:
You can run the arch script as often as you like, depending on how
up-to-date you want your webarchives to be.
You also can run the script from the command line to manually add
articles to the archive. (I just ran three years worth of traffic from a
reasonabally high-volume majordomo list I'm moving over thru this system,
and it went thru fine.)
You can set archives to use yearly, quarterly, or monthly archives
with this.
You will probably want to use the 'Set date to when re-sent' option
on your lists with this module.
All the HTML generated by this module is generated from a template.
This makes customizing the output trivial, just edit the template.
(Right now the templates are static strings. This should be changed soon.)
If you do not run the arch cronjob, then this module will do nothing,
and will not interfere with an external archiver.
-The Dragon De Monsyne
---1395546950-237318664-904200538=:1550
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=patch
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.3.96.980827014858.1550B@delta.integral.org>
Content-Description:
ZGlmZiAtYyAvdXN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0b21hdGljX2JvdW5jZV9hY3Rpb24nKQ0KICAgICAgIyAgLSBk
cm9wcGVkIHZhcnM6DQogICAgICBmb3IgYSBpbiBbJ2FyY2hpdmVfcmV0YWlu
X3RleHRfY29weScsDQohICAgICAgICAgICAgICAgJ2FyY2hpdmVfdXBkYXRl
X2ZyZXF1ZW5jeSddOg0KICAgICAgICAgIGlmIGhhc2F0dHIobCwgYSk6IGRl
bGF0dHIobCwgYSkNCiAgDQogIGRlZiBVcGRhdGVPbGRVc2VycyhsKToNCg==
---1395546950-237318664-904200538=:1550
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=arch
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.3.96.980827014858.1550C@delta.integral.org>
Content-Description:
IyEvdXNyL2xvY2FsL2Jpbi9weXRob24NCg0KaW1wb3J0IHN5cywgc3RyaW5n
LCBnZXRvcHQsIG9zDQppbXBvcnQgcGF0aHMNCmltcG9ydCBNYWlsbWFuLkh5
cGVyQXJjaA0KaW1wb3J0IE1haWxtYW4uVXRpbHMNCmZyb20gTWFpbG1hbi5I
eXBlckFyY2ggaW1wb3J0IEh5cGVyQXJjaGl2ZQ0KZnJvbSBNYWlsbWFuLk1h
aWxMaXN0IGltcG9ydCBNYWlsTGlzdA0KDQpkZWYgQXJjaExpc3QobGlzdCk6
DQogICAgbD1NYWlsTGlzdChsaXN0KQ0KICAgIGg9SHlwZXJBcmNoaXZlKGwp
DQogICAgaC5wcm9jZXNzTGlzdEFyY2goKQ0KICAgIGguY2xvc2UoKQ0KDQpk
ZWYgUHJpbnRVc2FnZSgpOg0KICAgIHByaW50ICgnICB1c2FnZTogYXJjaCBb
LXYgfCAtLXZlcmJvc2VdIFstbCAibGlzdCIgfCAtLWxpc3QgImxpc3QiXSAn
IA0KICAgICAgICAgICdbbWFpbGJveGZpbGVzXScpDQogICAgaW1wb3J0IHN5
cw0KICAgIHN5cy5leGl0KDEpDQoNCmRlZiBtYWluKCk6DQogICAgaWYgJy1o
JyBp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RpbnVlDQogICAgICAgICAgICAgICAgaC5w
cm9jZXNzVW5peE1haWxib3goZixNYWlsbWFuLkh5cGVyQXJjaC5BcnRpY2xl
KQ0KICAgICAgICAgICAgICAgIGYuY2xvc2UoKQ0KICAgICAgICAgICAgaC5j
bG9zZSgpDQogICAgICAgIGVsc2U6DQogICAgICAgICAgICBsPU1haWxMaXN0
KGNvbmZpZ1snTElTVCddKQ0KICAgICAgICAgICAgaD1IeXBlckFyY2hpdmUo
bCkNCiAgICAgICAgICAgIGlmIGNvbmZpZ1snVkVSQk9TRSddOg0KICAgICAg
ICAgICAgICAgIGguVkVSQk9TRT0xDQogICAgICAgICAgICBoLnByb2Nlc3NM
aXN0QXJjaCgpDQogICAgICAgICAgICBoLmNsb3NlKCkNCiAgICBlbHNlOg0K
ICAgICAgICAjbG9vcCB0aHJ1IGFsbCB0aGUgbGlzdHMsIGRvaW5nIGFyY2hp
dmluZyAtZGRtLiAgICAgDQogICAgICAgIGZvciBlYWNoIGluIE1haWxtYW4u
VXRpbHMubGlzdF9uYW1lcygpOg0KICAgICAgICAgICAgaWYgY29uZmlnWydW
RVJCT1NFJ106DQogICAgICAgICAgICAgICAgc3lzLnN0ZGVyci53cml0ZSgi
UHJvY2Vzc2luZyBsaXN0ICVzXG4iICUgZWFjaCkNCiAgICAgICAgICAgIGw9
TWFpbExpc3QoZWFjaCkNCiAgICAgICAgICAgIGlmIG5vdCBsLmFyY2hpdmU6
DQogICAgICAgICAgICAgICAgbC5VbmxvY2soKQ0KICAgICAgICAgICAgICAg
IGRlbCBsDQogICAgICAgICAgICBlbHNlOg0KICAgICAgICAgICAgICAgIGg9
SHlwZXJBcmNoaXZlKGwpDQogICAgICAgICAgICAgICAgaWYgY29uZmlnWydW
RVJCT1NFJ106DQogICAgICAgICAgICAgICAgICAgIGguVkVSQk9TRT0xDQog
ICAgICAgICAgICAgICAgaC5wcm9jZXNzTGlzdEFyY2goKQ0KICAgICAgICAg
ICAgICAgIGguY2xvc2UoKQ0KICAgICAgICAgICAgICAgICAgICANCmlmIF9f
bmFtZV9fID09ICdfX21haW5fXyc6DQogICAgbWFpbigpDQo=
---1395546950-237318664-904200538=:1550
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="HyperArch.py"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.3.96.980827014858.1550D@delta.integral.org>
Content-Description:
IiIiSHlwZXJBcmNoOiAgUGlwZXJtYWlsIGFyY2hpdmluZyBmb3IgTWFpbE1h
biwgdXNpbmcgRG9jdW1lbnRUZW1wbGF0ZQ0KICAgdGVtcGxhdGVzIA0KDQog
ICAgICAgLSBUaGUgRHJhZ29uIERlIE1vbnN5bmUgPGRyYWdvbmRtQGludGVn
cmFsLm9yZz4gDQoNCiAgIFNlZSA8aHR0cDovL3d3dy5kaWdpY29vbC5jb20v
c2l0ZS9QcmluY2lwaWEvRFRNTC5odG1sPiBmb3Igc29tZSBleHBsYW5hdGlv
bg0KICAgb2YgRFRNTCAoRG9jdW1lbnRUZW1wbGF0ZSkgU3ludGF4LiANCiAg
ICAoTm90ZTogdGhlIFVSTCBsaXN0ZWQgYWN1YWxseSBkb2N1bWVudHMgYSBz
bGlnaHRseSBleHRlbmRlZCBEVE1MIHN5bnRheCANCiAgICAgdXNlZCBieSBh
IHByb2R1Y3QgY2FsbGVkIFByaW5jaXBpYS4gQnVnIHRoZSBmb2xrcyBhdCBE
aWdpY29vbCBmZXIgJ3BsYWluJw0KICAgICBEVE1MIGRvY3VtZW50YXRpb24g
Oj4gKQ0KDQogICBUT0RPOg0KICAgICAtIFRoZSB0ZW1wbGF0ZXMgc2hvdWxk
IGJlIGJlIGZpbGVzIGluIE1haWxtYW4ncyBUZW1wbGF0ZSBkaXIsIGluc3Rl
YWQNCiAgICAgICBvZiBzdGF0aWMgc3RyaW5ncy4NCiAgICAgLSBFYWNoIGxp
c3Qgc2hvdWxkIGJlIGFibGUgdG8gaGF2ZSBpdCdzIG93biB0ZW1wbGF0ZXMu
DQogICAgICAgQWx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pbmU6DQogICAgICAgICAgICAgICAgYnJlYWsNCiAgICAgICAg
ICAgIGlmIChub3QgYmVnaW4pIGFuZCBzdHJpbmcuc3RyaXAobGluZSk9PSc8
IS0tYmVnaW5hcnRpY2xlLS0+JzoNCgkgICAgICAgIGJlZ2luPTENCiAgICAg
ICAgICAgICAgICBjb250aW51ZQ0KICAgICAgICAgICAgaWYgc3RyaW5nLnN0
cmlwKGxpbmUpPT0nPCEtLWVuZGFydGljbGUtLT4nOg0KICAgICAgICAgICAg
ICAgIGJyZWFrDQogICAgICAgICAgICBpZiBiZWdpbjoNCiAgICAgICAgICAg
ICAgICBzZWxmLmJvZHkuYXBwZW5kKGxpbmUpDQoNCiAgICBkZWYgX19nZXRz
dGF0ZV9fKHNlbGYpOg0KICAgICAgICBkPXt9DQogICAgICAgIGZvciBlYWNo
IGluIHNlbGYuX19kaWN0X18ua2V5cygpOg0KICAgICAgICAgICAgaWYgZWFj
aCBpbiBbJ21haWxsaXN0JywncHJldicsJ25leHQnLCdib2R5J106DQogICAg
ICAgICAgICAgICAgZFtlYWNoXSA9IE5vbmUNCiAgICAgICAgICAgIGVsc2U6
DQogICAgICAgICAgICAgICAgZFtlYWNoXSA9IHNlbGYuX19kaWN0X19bZWFj
aF0NCiAgICAgICAgZFsnYm9keSddPVtdDQogICAgICAgIHJldHVybiBkDQog
DQoNCmNsYXNzIEh5cGVyQXJjaGl2ZShwaXBlcm1haWwuVCk6DQoNCiAgICAj
IHNvbWUgZGVmYXVsdHMNCiAgICBESVJNT0RFPTA3NTUgDQogICAgRklMRU1P
REU9MDY0NCANCg0KICAgIFZFUkJPU0U9MA0KICAgIERFRkFVTFRJTkRFWD0n
dGhyZWFkJw0KICAgIEFSQ0hJVkVfUEVSSU9EPSdtb250aCcNCiANCiAgICBU
SFJFQURMQVpZPTANCiAgICBUSFJFQURMRVZFTFM9Mw0KDQogICAgQUxMT1dI
VE1MPTENCiAgICBTSE9XSFRNTD0xDQogICAgSVFVT1RFUz0xDQogIC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bmQgbW92
ZSBvbi4gDQoJdHJ5Og0KICAgICAgICAgICAgd2Y9b3Blbih3bmFtZSwncicp
DQogICAgICAgICAgICBzZWxmLm1haWxsaXN0LkxvZ01zZygiZXJyb3IiLCJB
cmNoaXZlIHdvcmtpbmcgZmlsZSAlcyBwcmVzZW50LiAiDQogICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAiQ2hlY2sgJXMgZm9yIHBvc3NpYmx5
IHVuYXJjaGl2ZWQgbXNncyIgJQ0KICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICh3bmFtZSxlbmFtZSkgKQ0KICAgICAgICAgICAgZWY9b3Bl
bihlbmFtZSwgJ2ErJykNCiAgICAgICAgICAgIGVmLnNlZWsoMSwyKQ0KICAg
ICAgICAgICAgaWYgZWYucmVhZCgxKSA8PiAnXG4nOg0KICAgICAgICAgICAg
ICAgIGVmLndyaXRlKCdcbicpDQogICAgICAgICAgICBlZi53cml0ZSh3Zi5y
ZWFkKCkpDQogICAgICAgICAgICBlZi5jbG9zZSgpDQogICAgICAgICAgICB3
Zi5jbG9zZSgpDQogICAgICAgICAgICBvcy51bmxpbmsod25hbWUpDQogICAg
ICAgIGV4Y2VwdCBJT0Vycm9yOg0KICAgICAgICAgICAgcGFzcw0KICAgICAg
ICBvcy5yZW5hbWUobmFtZSx3bmFtZSkNCiAgICAgICAgaWYgc2VsZi5fdW5s
b2NrbGlzdDoNCiAgICAgICAgICAgIHNlbGYubWFpbGxpc3QuVW5sb2NrKCkN
CiAgICAgICAgYXJjaGZpbGU9b3Blbih3bmFtZSwncicpDQogICAgICAgIHNl
bGYucHJvY2Vzc1VuaXhNYWlsYm94KGFyY2hmaWxlLCBBcnRpY2xlKQ0KICAg
ICAgICBhcmNoZmlsZS5jbG9zZSgpDQogICAgICAgIG9zLnVubGluayh3bmFt
ZSkNCiAgICAgICAgc2VsZi5Ecm9wQXJjaExvY2soKQ0KDQogICAgZGVmIGdl
dF9maWxlbmFtZShzZWxmL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In
KSkNCiAgICAgICAgICAgICAgICAgICAgbW9udGg9KHEqMyktMg0KICAgICAg
ICAgICAgICAgIGVsaWYgZWFjaCA9PSAnbW9udGgnOg0KICAgICAgICAgICAg
ICAgICAgICBtb250aHN0cj1zdHJpbmcubG93ZXIobWF0Y2guZ3JvdXAoJ21v
bnRoJykpDQogICAgICAgICAgICAgICAgICAgIG09W10NCiAgICAgICAgICAg
ICAgICAgICAgZm9yIGkgaW4gcmFuZ2UoMSwxMyk6DQogICAgICAgICAgICAg
ICAgICAgICAgICBtLmFwcGVuZChzdHJpbmcubG93ZXIoDQogICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICB0aW1lLnN0cmZ0aW1lKCIlQiIsKDE5
OTksaSwxLDAsMCwwLDAsMSwwKSkpKQ0KICAgICAgICAgICAgICAgICAgICB0
cnk6DQogICAgICAgICAgICAgICAgICAgICAgICBtb250aD1tLmluZGV4KG1v
bnRoc3RyKSsxDQogICAgICAgICAgICAgICAgICAgIGV4Y2VwdCBWYWx1ZUVy
cm9yOg0KICAgICAgICAgICAgICAgICAgICAgICAgcGFzcw0KICAgICAgICAg
ICAgICAgIHJldHVybiB0aW1lLm1rdGltZSgoeWVhcixtb250aCwxLDAsMCww
LDAsMSwtMSkpDQogICAgICAgIHJldHVybiAwLjANCg0KICAgIGRlZiBzb3J0
YXJjaGl2ZXMoc2VsZik6DQogICAgICAgIGRlZiBzZihhLGIscz1zZWxmKToN
CiAgICAgICAgICAgIGFsPXMudm9sTmFtZVRvRGF0ZShhKQ0KICAgICAgICAg
ICAgYmw9cy52b2xOYW1lVG9EYXRlKGIpDQogICAgICAgICAgICBpZiBhbD5i
bDoNCiAgICAgICAgICAgICAgICByZXR1cm4gMQ0KICAgICAgICAgICAgZWxp
ZiBhbDxibDoNCiAgICAgICAgICAgICAgICByZXR1cm4gLTENCiAgICAgICAg
ICAgIGVsc2U6DQogICAgICAgICAgICAgICAgcmV0dXJuIDANCiAgICAgICAg
aWYgc2VsZi5BU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GlydHlfYXJjaGl2ZXM6IA0K
ICAgICAgICAgICAgICAgIHNlbGYuX2RpcnR5X2FyY2hpdmVzLmFwcGVuZChp
KQ0KICAgICAgICBkZWwgdGVtcA0KDQoNCiAgICAjIFVwZGF0ZSBvbmx5IGFy
Y2hpdmVzIHRoYXQgaGF2ZSBiZWVuIG1hcmtlZCBhcyAiY2hhbmdlZCIuDQog
ICAgZGVmIHVwZGF0ZV9kaXJ0eV9hcmNoaXZlcyhzZWxmKToNCiAgICAgICAg
Zm9yIGkgaW4gc2VsZi5fZGlydHlfYXJjaGl2ZXM6DQogICAgICAgICAgICBz
ZWxmLnVwZGF0ZV9hcmNoaXZlKGkpDQogICAgICAgICAgICBhcmNoej1Ob25l
DQogICAgICAgICAgICBhcmNodD1Ob25lDQogICAgICAgICAgICB0cnk6DQog
ICAgICAgICAgICAgICAgaW1wb3J0IGd6aXANCiAgICAgICAgICAgICAgICB0
cnk6IA0KICAgICAgICAgICAgICAgICAgICBhcmNodD1vcGVuKG9zLnBhdGgu
am9pbihzZWxmLmJhc2VkaXIsIiVzLnR4dCIgJSBpKSwiciIpIA0KICAgICAg
ICAgICAgICAgICAgICB0cnk6IA0KICAgICAgICAgICAgICAgICAgICAgICAg
b3MucmVuYW1lKG9zLnBhdGguam9pbihzZWxmLmJhc2VkaXIsIiVzLnR4dC5n
eiIgJSBpKSwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9zLnBh
dGguam9pbihzZWxmLmJhc2VkaXIsIiVzLm9sZC50eHQuZ3oiICUgaSkpDQog
ICAgICAgICAgICAgICAgICAgICAgICBhcmNoej1nemlwLm9wZW4ob3MucGF0
aC5qb2luKHNlbGYuYmFzZWRpciwiJXMub2xkLnR4dC5neiIgJSBpKSwiciIp
DQogICAgICAgICAgICAgICAgICAgIGV4Y2VwdCAoSU9FcnJvciwgUnVudGlt
ZUVycm9yLCBvcy5lcnJvcik6DQogICAgICAgICAgICAgICAgICAgICAgICBw
YXNzDQogICAgICAgICAgICAgICAgICAgIG5ld3o9Z3ppcC5vcGVuKG9zLnBh
dGguam9pbihzZWxmLmJhc2VkaXIsIiVzLnR4dC5neiIgJSBpKSwidyIpIA0K
CQkgICAgaWYgYXJjaHogOg0KICAgICAgICAgICAgICAgICAgICAgICAgbmV3
ei53cml0ZShhcmNoei5yZWFkKCkpDQogICAgICAgICAgICAgICAgICAgICAg
ICBhcmNoei5jbG9zZSgpDQogICAgICAgICAgICAgICAgICAgICAgICBvcy51
bmxpbmsob3MucGF0aC5qb2luKHNlbGYuYmFzZWRpciwiJXMub2xkLnR4dC5n
eiIgJSBpKSkNCiAgICAgICAgICAgICAgICAgICAgbmV3ei53cml0ZShhcmNo
dC5yZWFkKCkpDQogICAgICAgICAgICAgICAgICAgIG5ld3ouY2xvc2UoKQ0K
ICAgICAgICAgICAgICAgICAgICBhcmNodC5jbG9zZSgpDQogICAgICAgICAg
ICAgICAgICAgIG9zLnVubGluayhvcy5wYXRoLmpvaW4oc2VsZi5iYXNlZGly
LCIlcy50eHQiICUgaSkpDQogICAgICAgICAgICAgICAgZXhjZXB0IElPRXJy
b3I6DQogICAgICAgICAgICAgICAgICAgIHBhc3MNCiAgICAgICAgICAgIGV4
Y2VwdCBJbXBvcnRFcnJvcjoNCiAgICAgICAgICAgICAgICBwYXNzDQogICAg
ICAgIHNlbGYuX2RpcnR5X2FyY2hpdmVzPVtdDQoNCiAgICBkZWYgY2xvc2Uo
c2VsZik6DQogICAgICAgICJDbG9zZSBhbiBhcmNoaXZlLCBzYXZpbmcgaXRz
IHN0YXRlIGFuZCB1cGRhdGluZyBhbnkgY2hhbmdlZCBhcmNoaXZlcy4iDQog
ICAgICAgIHNlbGYudXBkYXRlX2RpcnR5X2FyY2hpdmVzKCkjIFVwZGF0ZSBh
bGwgY2hhbmdlZCBhcmNoaXZlcw0KICAgICAgICAjIElmIHJlcXVpcmVkLCB1
cGRhdGUgdGhlIHRhYmxlIG9mIGNvbnRlbnRzDQogICAgICAgIGlmIHNlbGYu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