diff options
author | terry%netscape.com <> | 1998-09-01 23:02:13 +0200 |
---|---|---|
committer | terry%netscape.com <> | 1998-09-01 23:02:13 +0200 |
commit | 8d308d6277ed3a618131f4db785ff25b5a9705d3 (patch) | |
tree | 61d89fb2567e4753253a78f2ed28cc7d1cf9933c /processmail | |
parent | 09ab09b092fd475080bdc0325ac0d988287db681 (diff) | |
download | bugzilla-8d308d6277ed3a618131f4db785ff25b5a9705d3.tar.gz bugzilla-8d308d6277ed3a618131f4db785ff25b5a9705d3.tar.xz |
Use the "urlbase" param. Make regeneration easier.
Diffstat (limited to 'processmail')
-rwxr-xr-x | processmail | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/processmail b/processmail index 36935185e..a40723a0b 100755 --- a/processmail +++ b/processmail @@ -20,9 +20,7 @@ # Contributor(s): Terry Weissman <terry@mozilla.org> -# To recreate the shadow database, nuke all the entires and then run -# processmail regenerate <last>, where <last> is the biggest bug number -# currently used. +# To recreate the shadow database, run "processmail regenerate" . source "globals.tcl" @@ -140,9 +138,6 @@ proc Log {str} { } -set COOKIE(Bugzilla_login) terry -set COOKIE(Bugzilla_password) terry - ConnectToDatabase @@ -152,7 +147,7 @@ To: %s Cc: %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" @@ -178,10 +173,10 @@ close $lockfid set regenerate 0 if {[cequal [lindex $argv 0] "regenerate"]} { set regenerate 1 - set last [lindex $argv 1] set argv "" - loop i 1 [expr $last + 1] { - lappend argv $i + SendSQL "select bug_id from bugs order by bug_id" + while {[MoreSQLData]} { + lappend argv [lindex [FetchSQLData] 0] } } @@ -197,9 +192,6 @@ foreach i $argv { } set text [GetBugText $i] if {$text == ""} { - if {$regenerate} { - continue - } error "Couldn't find bug $i." } set fid [open $new "w"] |