2010-07-15 2 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

관련 문제