6 STDERR.print "usage: scanhist -h HISTORY ML-archive1 ML-archive2 ...\n"
17 if ARGV.size == 0 then
40 if /Subject: (\[w3m-dev.*\])/ then
55 elsif subject.nil? and /^Subject: / then
56 $_ =~ /Subject: (\[w3m-dev.*\])/
58 archive[subject] = [$_.chop.sub(/^Subject:\s*/,""),false,fn+"#"+($.).to_s]
59 elsif /^\+\+\+/ or /\*\*\*/ or /filename=.*(patch|diff).*/ or /^begin \d\d\d/
60 archive[subject][1] = true
66 print "<html><head><title>w3m patch configuration\n</title></head><body>\n"
68 for sub in archive.keys.sort
72 print "[<a href=\"#{histfile}\##{histline[sub]}\">+</a>]"
76 print "<a href=\"#{a[2]}\">"
77 print "<b>",html_quote(a[0]),"</b></a>\n"
80 print "[<a href=\"#{histfile}\##{histline[sub]}\">o</a>]"
84 print "<a href=\"#{a[2]}\">"
85 print "<b>",html_quote(a[0]),"</b></a>\n"
88 print "</pre></body></html>\n"