get_mails
获取邮件信息列表
声明
array get_mails(object conn, string mail_type, string box_id, int start_id = 0, int count = -1)
参数
| 参数名 | 描述 |
|---|---|
| conn | 数据库客户端连接对象(通过MailD.assure_connection获得) |
| mail_type | 邮件类型(sys_mail/user_mail) |
| box_id | 邮箱id |
| start_id | 获取的邮件id起始值(超过该值的邮件id才会被获取,默认为0) |
| count | 获取的邮件数量(-1表示获取所有邮件,默认为-1) |
返回值
邮件信息列表