Commit 8d308d62 authored by terry%netscape.com's avatar terry%netscape.com

Use the "urlbase" param. Make regeneration easier.

parent 09ab09b0
...@@ -20,9 +20,7 @@ ...@@ -20,9 +20,7 @@
# Contributor(s): Terry Weissman <terry@mozilla.org> # Contributor(s): Terry Weissman <terry@mozilla.org>
# To recreate the shadow database, nuke all the entires and then run # To recreate the shadow database, run "processmail regenerate" .
# processmail regenerate <last>, where <last> is the biggest bug number
# currently used.
source "globals.tcl" source "globals.tcl"
...@@ -140,9 +138,6 @@ proc Log {str} { ...@@ -140,9 +138,6 @@ proc Log {str} {
} }
set COOKIE(Bugzilla_login) terry
set COOKIE(Bugzilla_password) terry
ConnectToDatabase ConnectToDatabase
...@@ -152,7 +147,7 @@ To: %s ...@@ -152,7 +147,7 @@ To: %s
Cc: %s Cc: %s
Subject: \[Bug %s\] %s - %s Subject: \[Bug %s\] %s - %s
http://cvs-mirror.mozilla.org/webtools/bugzilla/show_bug.cgi?id=%s [Param urlbase]show_bug.cgi?id=%s
%s" %s"
...@@ -178,10 +173,10 @@ close $lockfid ...@@ -178,10 +173,10 @@ close $lockfid
set regenerate 0 set regenerate 0
if {[cequal [lindex $argv 0] "regenerate"]} { if {[cequal [lindex $argv 0] "regenerate"]} {
set regenerate 1 set regenerate 1
set last [lindex $argv 1]
set argv "" set argv ""
loop i 1 [expr $last + 1] { SendSQL "select bug_id from bugs order by bug_id"
lappend argv $i while {[MoreSQLData]} {
lappend argv [lindex [FetchSQLData] 0]
} }
} }
...@@ -197,9 +192,6 @@ foreach i $argv { ...@@ -197,9 +192,6 @@ foreach i $argv {
} }
set text [GetBugText $i] set text [GetBugText $i]
if {$text == ""} { if {$text == ""} {
if {$regenerate} {
continue
}
error "Couldn't find bug $i." error "Couldn't find bug $i."
} }
set fid [open $new "w"] set fid [open $new "w"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment