我最近在Dovecot 2.0.19上遇到了我的IMAP文件夹问题。当我telnet到我的帐户并执行列表时,我得到以下响应:
A list "*" "*"
* LIST (\Unmarked) "." "INBOX"
A OK List completed.
但是我知道这里有子文件夹并直接通过SSH检查服务器,奇怪的是:
a select INBOX.Clients
* OK [CLOSED] Previous mailbox closed.
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
* 0 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1394028715] UIDs valid
* OK [UIDNEXT 1] Predicted next UID
* OK [HIGHESTMODSEQ 1] Highest
a OK [READ-WRITE] Select completed.
只是不确定为什么LIST没有给我一个完整的清单。这也影响通过Thunderbird连接到我的IMAP,因为我只能访问我的INBOX。有关如何诊断问题的任何想法?
我现在得到了结果,我通过删除引号实现了这一点。通过PHP和fsockopen/fputs
与服务器通信这有效:
fputs($socket, "A5 LIST * % " . NEWLINE);