You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pop3 error are generic and hide real error messageand are difficult to debug.
Q
A
Version(s)
all (since ZF1 to latest laminas version 2.17.0)
Summary
I was having problem with some pop3 authentication and was unable to see real error message without patching some Laminas file.
I needed error message send by pop3 server. Laminas doesn't include this message in generated exception.
Bug Report
Hello,
Pop3 error are generic and hide real error messageand are difficult to debug.
Summary
I was having problem with some pop3 authentication and was unable to see real error message without patching some Laminas file.
I needed error message send by pop3 server. Laminas doesn't include this message in generated exception.
https://github.com/laminas/laminas-mail/blob/2.17.x/src/Protocol/Pop3.php#L156
in laminas-mail/src/Protocol/Pop3.php:156 it should be added $message and $status (or $result directly) to be able to understand what is the problem.
Exemple of patch :
Current behavior
error shown was :
How to reproduce
Connect to some pop3 server with wrong credentials.
Expected behavior
Expect to be able to read server error messages. Here are two exemples of real error messages :
Exemple 1 :
Example 2 :
The text was updated successfully, but these errors were encountered: