catch (ClassNotFoundException e) { throw new RuntimeException(e); }
}
- public void add(Message m) {
+ public Mailbox.Iterator iterator() { return new SqliteJdbcIterator(); }
+ public void insert(Message m, int flags) {
+ // FIXME: flags
try {
PreparedStatement add = conn.prepareStatement("insert into 'mail' values (?,?,?,?,?,?,?)");
add.setString(1, m.messageid+"");
add.executeUpdate();
} catch (Exception e) { throw new RuntimeException(e); }
}
-
- public Mailbox.Iterator iterator() { return new SqliteJdbcIterator(); }
- public void add(Message message, int flags) { add(message); }
public int uidNext() { throw new RuntimeException("not supported"); }
private class SqliteJdbcIterator extends Mailbox.Default.Iterator {