DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34133>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34133

           Summary: POP3Client ProtocolCommandListener protocolReplyReceived
                    method event.getMessage() is empty/blank
           Product: Commons
           Version: Nightly Builds
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Net
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Using POP3Client.addProtocolCommandListener, when the listener's
protocolReplyReceived method is called with a ProtocolCommandEvent object, the
getMessage() method of this object returns a blank string. It should return the
reply string. Caused by POP3.__getReply() calling the listener before it has
saved the reply string in _replyLines.

Pseudocode example:

public class TestPOP3 implements ProtocolCommandLister 
{
        public void connect()
        {
                                POP3Client client = new POP3Client();
                                client.addProtocolCommandListener(this);
                                client.connect(emailServer);
                                client.login(emailUsername, emailPassword);
                                client.disconnect();
        }
        public void protocolCommandSent(ProtocolCommandEvent vent)
        {
                log.debug(">" + event.getMessage());
        }
        public void protocolReplyReceived(ProtocolCommandEvent vent)
        {
                // bug: event.getMessage() is always an empty string ere
                log.debug("<" + event.getMessage());
        }
}

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to