X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fmail_import.ml;h=008d9912393f777ea13fe2c65ed92862ed0a555b;hb=363281defc272f4f41774641593a73c5a0c33deb;hp=9e30fc901adf68922e9606231f824189117b06e1;hpb=844dcb8bb66df887e0d677359f0278f17934efad;p=cocanwiki.git diff --git a/scripts/mail_import.ml b/scripts/mail_import.ml index 9e30fc9..008d991 100644 --- a/scripts/mail_import.ml +++ b/scripts/mail_import.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: mail_import.ml,v 1.6 2004/10/20 15:17:18 rich Exp $ + * $Id: mail_import.ml,v 1.8 2005/11/17 10:14:42 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 @@ -172,7 +172,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ user = message_date) values (?, ?, ?, ?)" in sth#execute [`Int hostid; `String subject; `String inet_message_id; `Timestamp (date, time)]; - let msgid = sth#serial "messages_id_seq" in + let msgid = Int64.to_int (sth#serial "messages_id_seq") in let sth = dbh#prepare_cached @@ -298,7 +298,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ user = try String.find (String.lowercase str) sub_lc with - String.Invalid_string -> -1 + Invalid_string -> -1 in let rec loop line = function [] -> line