[Mailman-Developers] Making the list archive URL configurable
Marc MERLIN
marc_news@valinux.com
Mon, 8 Oct 2001 22:10:38 -0700
I had the implement the following patches on SF's mailman:
usw-sf-list1:/var/local/src# cat mailman-2.0.geocrawler.patch
--- mailman-2.0.3/Mailman/HTMLFormatter.py Sat Sep 9 12:13:58 2000
+++ mailman-2.0.3.sf/Mailman/HTMLFormatter.py Mon Mar 19 15:44:02 2001
@@ -309,7 +309,7 @@
return ('<FORM Method=POST ACTION="%s">' % full_url)
def FormatArchiveAnchor(self):
- return '<a href="%s">' % self.GetBaseArchiveURL()
+ return '<a href="http://www.geocrawler.com/redir-sf.php3?list=%s">' % self._internal_name
def FormatFormEnd(self):
return '</FORM>'
usw-sf-list1:/var/local/src# cat mailman-2.0.geocrawler2.patch
diff -urN mailman-2.0.5.sf.old/Mailman/Handlers/CookHeaders.py mailman-2.0.5.sf/Mailman/Handlers/CookHeaders.py
--- mailman-2.0.5.sf.old/Mailman/Handlers/CookHeaders.py Wed Nov 15 20:35:09 2000
+++ mailman-2.0.5.sf/Mailman/Handlers/CookHeaders.py Mon Oct 8 16:00:18 2001
@@ -131,7 +131,8 @@
# Always delete List-Archive header, but only add it back if the list is
# actually archiving
del msg['List-Archive']
- if mlist.archive:
- value = '<%s>' % urlparse.urljoin(mlist.web_page_url,
- mlist.GetBaseArchiveURL())
- msg['List-Archive'] = value
+ #if mlist.archive:
+ # value = '<%s>' % urlparse.urljoin(mlist.web_page_url,
+ # mlist.GetBaseArchiveURL())
+ value = '<http://www.geocrawler.com/redir-sf.php3?list=%s>' % mlist._internal_name
+ msg['List-Archive'] = value
(I am missing the link in the admin page, but that's ok)
Is there a way to add the archive URL in the list options and the UI (I
thought about doint it, but I'm not too familiar with the datbase
compatibility issues and the problems with adding a new field in the list
options)
Thanks,
Marc
--
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | Finger marc_f@merlins.org for PGP key