1

有没有命令可以做到这一点?我可以从某个日期或最近或未见过的消息中获取消息,但我找不到任何方法来获取最新消息并且只能获取最新消息。

4

1 回答 1

2

When you connect, the server gives you an EXISTS, telling you how many messages you have. Take that number (say, 62), and fetch that message: tag FETCH 62 (whatever). That's the most recent message that's been added to the mailbox.

于 2012-10-17T03:03:33.207 回答