![来自 IMAP 服务器的问候 — 格式?](https://linux22.com/image/682448/%E6%9D%A5%E8%87%AA%20IMAP%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%9A%84%E9%97%AE%E5%80%99%20%E2%80%94%20%E6%A0%BC%E5%BC%8F%EF%BC%9F.png)
我正在尝试了解 IMAP 的规范,网址为
互联网消息访问协议 - 版本 4rev1 (RFC3501)
服务器发出的问候语是否总是采用以下格式?
* OK something doesn't matter what
也就是说,它是否以* OK
总是并且在开头有 * 和一个空格?
答案1
不,它至少可以有三种变体(参见第 14 页):
(1) connection without pre-authentication (OK greeting)
(2) pre-authenticated connection (PREAUTH greeting)
(3) rejected connection (BYE greeting)