ResultSet rs2 = null;
sendLock.lock();
try
{
con = L2DatabaseFactory.getInstance().getConnection();
stmt = con.createStatement();
rs = stmt.executeQuery("SELECT m.messageId, m.topic, UNIX_TIMESTAMP(m.expire) AS lifetime, m.body, m.price, m.attachments, m.unread, m.system, m.sender, m.receiver, cs.char_name, cr.char_name FROM mail m LEFT JOIN characters cs ON ( m.sender = cs.obj_Id ) LEFT JOIN characters cr ON ( m.receiver = cr.obj_Id )");
while(rs.next())
{
Letter ret = new Letter();
ret.id = rs.getInt("m.messageId");