Scripts updated to use new PG interface.
[cocanwiki.git] / scripts / mail_rebuild.ml
index 4a56e5f..a16314a 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI - a wiki written in Objective CAML.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: mail_rebuild.ml,v 1.3 2006/03/27 18:09:46 rich Exp $
+ * $Id: mail_rebuild.ml,v 1.4 2006/03/28 16:24:07 rich Exp $
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -29,8 +29,8 @@ open Cocanwiki_ok
 open Cocanwiki_mail
 
 let run r (q : cgi) dbh hostid _ user =
-  let year = Int32.of_string (q#param "year") in
-  let month = Int32.of_string (q#param "month") in
+  let year = int_of_string (q#param "year") in
+  let month = int_of_string (q#param "month") in
 
   thread_mail dbh hostid ~user ~r year month;