commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34133] New: - POP3Client ProtocolCommandListener protocolReplyReceived method event.getMessage() is empty/blank
Date Tue, 22 Mar 2005 16:51:45 GMT
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: commons-dev@jakarta.apache.org
        ReportedBy: sammy_c@lineone.net


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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message