(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* 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
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
try
String.find (String.lowercase str) sub_lc
with
- String.Invalid_string -> -1
+ Invalid_string -> -1
in
let rec loop line = function
[] -> line