public static Collection search(Connection conn, SearchConstraints c) throws ServiceException { return search(new ArrayList(), conn, c, false);
public static Collection search(Connection conn, int mailboxId, Tag[] tags, Tag[] excludeTags, Folder[] folders, Folder[] excludeFolders, byte type, byte sort) throws ServiceException { SearchConstraints c = new SearchConstraints(); c.mailboxId = mailboxId; c.tags      = tags; c.excludeTags = excludeTags; c.folders   = folders; c.excludeFolders = excludeFolders; c.types     = new byte[1]; c.types[0]  = type; c.sort      = sort; return search(conn, c);
    public static Collection search(Connection conn, SearchConstraints c) throws ServiceException {        return search(new ArrayList(), conn, c, false);    }