for review: <TITLE> tag of email messages more informative.
Peter Ross
petdr at cs.mu.OZ.AU
Thu Mar 25 14:51:14 AEDT 1999
Hi,
If anyone wants to review this feel free. I have already committed the
changes.
Pete.
===================================================================
Estimated hours taken: 1
Use the new facilities of hypermail to make the <TITLE> of each page
in the mailing list archive more informative.
.cvsignore:
Ignore the new header/footer files.
Makefile:
Add rules to generate the new header/footer files.
Fix bug in that some % signs need to become %%.
archive2html.sh:
Use the new header/footer files.
message.php3:
Generate header/footer for each individual mail message.
message_list.php3:
Generate header/footer for the index pages, ie by thread and so on.
blank.php3:
include/blank.inc:
Remove:
include/message.inc:
include/message_list.inc:
Empty files needed to satisfy make rules.
Index: .cvsignore
===================================================================
RCS file: /home/staff/zs/imp/w3/mailing-lists/.cvsignore,v
retrieving revision 1.2
diff -u -b -r1.2 .cvsignore
--- .cvsignore 1998/09/16 23:14:48 1.2
+++ .cvsignore 1999/03/25 03:45:54
@@ -1,3 +1,5 @@
*.html
-footer.inc
-header.inc
+msg_footer.inc
+msg_header.inc
+msglist_footer.inc
+msglist_header.inc
Index: Makefile
===================================================================
RCS file: /home/staff/zs/imp/w3/mailing-lists/Makefile,v
retrieving revision 1.6
diff -u -b -r1.6 Makefile
--- Makefile 1999/03/25 01:36:02 1.6
+++ Makefile 1999/03/25 03:38:59
@@ -1,20 +1,33 @@
target: html
-HTML= blank.html mailing-lists.html search.html
+HTML= mailing-lists.html message.html message_list.html search.html
DIRS=mercury-users mercury-developers
ROOT=..
html: local_html
-local_html: header.inc footer.inc
+local_html: msglist_header.inc msg_header.inc msglist_footer.inc msg_footer.inc
-header.inc: blank.html
+msglist_header.inc: message_list.html
echo "May need to rearchive the hypermail archive"
- cat blank.html | sed -e 's/\.\./\.\.\/\.\.\/\.\./g' | \
- tac | tail +7 | tac > header.inc
+ cat message_list.html | sed -e 's/\%\"/\%\%\"/g' | \
+ sed -e 's/\.\./\.\.\/\.\.\/\.\./g' | \
+ tac | tail +7 | tac > msglist_header.inc
-footer.inc: blank.html
- cat blank.html | sed -e 's/\.\./\.\.\/\.\.\/\.\./g' | \
- tail -6 > footer.inc
+msglist_footer.inc: message_list.html
+ cat message_list.html | sed -e 's/\%\"/\%\%\"/g' | \
+ sed -e 's/\.\./\.\.\/\.\.\/\.\./g' | \
+ tail -6 > msglist_footer.inc
+
+msg_header.inc: message.html
+ echo "May need to rearchive the hypermail archive"
+ cat message.html | sed -e 's/\%\"/\%\%\"/g' | \
+ sed -e 's/\.\./\.\.\/\.\.\/\.\./g' | \
+ tac | tail +7 | tac > msg_header.inc
+
+msg_footer.inc: message.html
+ cat message.html | sed -e 's/\%\"/\%\%\"/g' | \
+ sed -e 's/\.\./\.\.\/\.\.\/\.\./g' | \
+ tail -6 > msg_footer.inc
include ../Makefile.common
Index: archive2html.sh
===================================================================
RCS file: /home/staff/zs/imp/w3/mailing-lists/archive2html.sh,v
retrieving revision 1.5
diff -u -b -r1.5 archive2html.sh
--- archive2html.sh 1999/03/25 01:36:02 1.5
+++ archive2html.sh 1999/03/25 03:43:23
@@ -15,12 +15,12 @@
# Header/Footer files for the index pages
# Well at least the man page says that it should be the file,
# but for some reason it must be the contents of the file.
-export HM_IHTMLHEADERFILE="`cat header.inc`"
-export HM_IHTMLFOOTERFILE="`cat footer.inc`"
+export HM_IHTMLHEADERFILE="`cat msglist_header.inc`"
+export HM_IHTMLFOOTERFILE="`cat msglist_footer.inc`"
# Header/Footer files for the message pages
-export HM_MHTMLHEADERFILE="`cat header.inc`"
-export HM_MHTMLFOOTERFILE="`cat footer.inc`"
+export HM_MHTMLHEADERFILE="`cat msg_header.inc`"
+export HM_MHTMLFOOTERFILE="`cat msg_footer.inc`"
while getopts ad:f:m:uy: flag ; do
case $flag in
Index: blank.php3
===================================================================
RCS file: blank.php3
diff -N blank.php3
--- /tmp/cvs24068daa Thu Mar 25 14:46:18 1999
+++ /dev/null Wed May 28 10:49:58 1997
@@ -1,9 +0,0 @@
-<HTML>
-<?
- $title="%s";
- $dir="mailing-lists";
- $root="..";
- $include="blank.inc";
- include "$root/include/template.inc"
-?>
-</HTML>
Index: message.php3
===================================================================
RCS file: message.php3
diff -N message.php3
--- /dev/null Wed May 28 10:49:58 1997
+++ message.php3 Thu Mar 25 14:35:39 1999
@@ -0,0 +1,9 @@
+<HTML>
+<?
+ $title="%s";
+ $dir="mailing-lists";
+ $root="..";
+ $include="message.inc";
+ include "$root/include/template.inc"
+?>
+</HTML>
Index: message_list.php3
===================================================================
RCS file: message_list.php3
diff -N message_list.php3
--- /dev/null Wed May 28 10:49:58 1997
+++ message_list.php3 Thu Mar 25 14:35:45 1999
@@ -0,0 +1,9 @@
+<HTML>
+<?
+ $title="%l %s";
+ $dir="mailing-lists";
+ $root="..";
+ $include="message_list.inc";
+ include "$root/include/template.inc"
+?>
+</HTML>
Index: include/blank.inc
===================================================================
RCS file: blank.inc
diff -N blank.inc
Index: include/message.inc
===================================================================
RCS file: message.inc
diff -N message.inc
Index: include/message_list.inc
===================================================================
RCS file: message_list.inc
diff -N message_list.inc
----
+----------------------------------------------------------------------+
| Peter Ross M Sci/Eng Melbourne Uni |
| petdr at cs.mu.oz.au WWW: www.cs.mu.oz.au/~petdr/ ph: +61 3 9344 9158 |
+----------------------------------------------------------------------+
More information about the developers
mailing list