2010-07-15 66 views
2

imap_last_error()在发生错误时给出PHP返回的字符串。是否有所有可能的PHP imap_last_error()消息的列表?

我想捕获这些,以便我可以将它们传递给我的应用程序并对其采取行动。问题是,它没有给出错误代码,另外我找不到所有可能出现的错误。

有谁知道我在哪里可以发现这些?目前我知道

'Unknown Error', 
'Too many login failures', 
'Login aborted' 

但是必须有更多。

在此先感谢你们。

回答

4

下载UW c-client并检查文件c-client\imap4r1.c

绝大多数错误消息是IMAP服务器发送的错误消息的复制品。不过,我发现了一些预定的。他们是:

 
mm_log ("Scan not valid on this IMAP server",ERROR); 
mm_log ("Unable to negotiate TLS with this server",ERROR); 
mm_log ("IMAP Authentication cancelled",ERROR); 
mm_log ("Can't do secure authentication with this server",ERROR); 
mm_log ("Server disables LOGIN, no recognized SASL authenticator",ERROR); 
mm_log ("Can't do /authuser with this server",ERROR); 
mm_log ("Too many login failures",ERROR); 
mm_log ("Login aborted",ERROR); 
mm_log ("[NOTUIDPLUS] Can't do UID EXPUNGE with this server",ERROR); 
mm_log ("Excessively complex sequence",ERROR); 
mm_log ("Can't access server for append",ERROR); 
mm_log ("ACL not available on this IMAP server",ERROR); 
mm_log ("Quota not available on this IMAP server",ERROR); 
+0

可怕的文件,但完美 - 非常感谢你。 – Glycerine 2010-07-16 00:14:57

相关问题