是否有所有可能的 PHP imap_last_error() 消息的列表?

发布于 2024-09-10 02:41:44 字数 268 浏览 2 评论 0原文

当发生错误时,imap_last_error() 在 PHP 中返回一个字符串。

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

有谁知道我在哪里可以找到这些?目前我知道了

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

,但一定还有更多。

预先感谢各位。

imap_last_error() gives a string return in PHP when an error has occured.

I'd like to capture these so I can pass them to my app and act upon them. Problem is, it doesn't give a error code, additionally I can't find all the possible errors of which may appear.

Does anyone know where I can discover these? Currently I know

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

but there must be more.

Thanks in advance guys.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

忆梦 2024-09-17 02:41:44

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

Download the UW c-client and check the file c-client\imap4r1.c.

The great majority of the error messages are reproductions of the error messages the IMAP server has sent. I found a few that were predetermined, though. Here they are:

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);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文