Quadcap Embeddable Server

com.quadcap.pop3.client.Agent Class Reference

Inheritance diagram for com.quadcap.pop3.client.Agent:

Runnable List of all members.

Detailed Description

This simple Pop3 agent transfers all new messages in a remote Pop3 mailbox into the specified folder in the quadcap message store.

A more sophisticated agent would scan the headers first and apply filters to certain messages without having to fetch the bodies.

Author:
Stan Bailes

Definition at line 61 of file Agent.java.

Public Member Functions

 Agent (String host, String user, String password)
 Create a new Agent with the specified profile name.

void run ()
 The Command callback object which invokes this agent.


Static Public Member Functions

void main (String[] args)

Package Functions

void getAndDeleteMail () throws IOException
 The simple delete from server case.


Package Attributes

String host
String user
String password
Session pop3 = null


Constructor & Destructor Documentation

com.quadcap.pop3.client.Agent.Agent String  host,
String  user,
String  password
 

Create a new Agent with the specified profile name.

Parameters:
profileName the name of the profile.

Definition at line 72 of file Agent.java.


Member Function Documentation

void com.quadcap.pop3.client.Agent.getAndDeleteMail  )  throws IOException [package]
 

The simple delete from server case.

Get all of the mail, put it in the right folder, then delete it from the server.

Definition at line 114 of file Agent.java.

References com.quadcap.pop3.client.Session.dele(), com.quadcap.pop3.client.Agent.pop3, com.quadcap.pop3.client.Session.retr(), com.quadcap.pop3.client.Session.stat(), and com.quadcap.pop3.client.Agent.user.

Referenced by com.quadcap.pop3.client.Agent.run().

void com.quadcap.pop3.client.Agent.main String[]  args  )  [static]
 

Definition at line 131 of file Agent.java.

References com.quadcap.pop3.client.Agent.main(), and com.quadcap.pop3.client.Agent.run().

Referenced by com.quadcap.pop3.client.Agent.main().

void com.quadcap.pop3.client.Agent.run  ) 
 

The Command callback object which invokes this agent.

Definition at line 81 of file Agent.java.

References com.quadcap.pop3.client.Session.connect(), com.quadcap.pop3.client.Agent.getAndDeleteMail(), com.quadcap.pop3.client.Agent.host, com.quadcap.pop3.client.Session.pass(), com.quadcap.pop3.client.Agent.password, com.quadcap.pop3.client.Agent.pop3, com.quadcap.pop3.client.Session.quit(), com.quadcap.pop3.client.Session.user(), and com.quadcap.pop3.client.Agent.user.

Referenced by com.quadcap.pop3.client.Agent.main().


Member Data Documentation

String com.quadcap.pop3.client.Agent.host [package]
 

Definition at line 62 of file Agent.java.

Referenced by com.quadcap.pop3.client.Agent.run().

String com.quadcap.pop3.client.Agent.password [package]
 

Definition at line 64 of file Agent.java.

Referenced by com.quadcap.pop3.client.Agent.run().

Session com.quadcap.pop3.client.Agent.pop3 = null [package]
 

Definition at line 65 of file Agent.java.

Referenced by com.quadcap.pop3.client.Agent.getAndDeleteMail(), and com.quadcap.pop3.client.Agent.run().

String com.quadcap.pop3.client.Agent.user [package]
 

Definition at line 63 of file Agent.java.

Referenced by com.quadcap.pop3.client.Agent.getAndDeleteMail(), and com.quadcap.pop3.client.Agent.run().