代码之家  ›  专栏  ›  技术社区  ›  Glycerine

是否有所有可能的PHP imap\u last\u error()消息的列表?

  •  3
  • Glycerine  · 技术社区  · 14 年前

    imap\u last\u error()在发生错误时在PHP中提供字符串返回。

    我想捕捉这些,以便我可以把它们传递到我的应用程序,并根据它们采取行动。问题是,它没有给出一个错误代码,另外我也找不到所有可能出现的错误。

    有人知道我在哪里能发现这些吗?现在我知道了

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

    提前谢谢各位。

    1 回复  |  直到 14 年前
        1
  •  5
  •   Artefacto    14 年前

    下载 UW c-client c-client\imap4r1.c .

    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);