Class grendel.storage.PopMailDrop
All Packages This Package Class Hierarchy Class Search Index
Class grendel.storage.PopMailDrop
java.lang.Object
|
+----grendel.storage.PopMailDrop
class PopMailDrop
extends java.lang.Object
implements grendel.storage.MailDrop
{
// Fields 19
static final boolean DEBUG;
static final String DELETE;
static final String KEEP;
Folder fFolder;
String fHost;
InputStream fInput;
int fNumWaiting;
DataOutputStream fOutput;
String fPass;
int fPort;
Socket fSocket;
String fUser;
StringBuffer inbuffer;
boolean leaveMessagesOnServer;
File popstatefile;
int stat_msgcount;
int stat_octetcount;
boolean uidlUnimplemented;
boolean xtndUnimplemented;
// Constructors 1
PopMailDrop();
// Methods 28
static void Spew(String);
protected void check(boolean, String) throws MailDropException;
protected void check(String, String) throws MailDropException;
protected void cleanup();
protected void clearAssumptionsAboutServer();
public synchronized void doBiff() throws IOException;
public synchronized void fetchNewMail() throws IOException;
protected void fetchOrCheck(boolean) throws IOException;
public int getBiffState();
Folder getDestinationFolder();
boolean getLeaveMessagesOnServer();
public int getNumMessagesWaiting();
File getPopStateFile();
protected Hashtable loadLeaveOnServerList();
protected void login() throws IOException;
protected void logout() throws IOException;
protected String readln() throws IOException;
protected boolean resultOK(String);
protected void saveLeaveOnServerList(Hashtable) throws IOException;
void setDestinationFolder(Folder);
void setHost(String);
void setLeaveMessagesOnServer(boolean);
void setPassword(String);
void setPopStateFile(File);
void setPort(int);
void setUser(String);
protected void stat() throws IOException;
protected void writeln(String) throws IOException;
}
Fields
static final String KEEP
static final String DELETE
String fHost
int fPort
String fUser
String fPass
Folder fFolder
int fNumWaiting
Socket fSocket
InputStream fInput
DataOutputStream fOutput
int stat_msgcount
int stat_octetcount
File popstatefile
boolean uidlUnimplemented
boolean xtndUnimplemented
boolean leaveMessagesOnServer
static final boolean DEBUG
StringBuffer inbuffer
Constructors
PopMailDrop()
Methods
static void Spew(String s)
protected void clearAssumptionsAboutServer()
void setHost(String hostname)
void setPort(int port)
void setUser(String username)
void setPassword(String password)
void setDestinationFolder(Folder dest)
Folder getDestinationFolder()
void setPopStateFile(File f)
File getPopStateFile()
void setLeaveMessagesOnServer(boolean value)
boolean getLeaveMessagesOnServer()
protected void fetchOrCheck(boolean dofetch) throws IOException
All the real work is done here. Go to the POP server, determine
what messages need downloading, and optionally actually download them.
(The only reason not to go ahead and download them is if we're doing a
biff check.)
protected Hashtable loadLeaveOnServerList()
protected void saveLeaveOnServerList(Hashtable table) throws IOException
public synchronized void fetchNewMail() throws IOException
- Implements:
- fetchNewMail in interface MailDrop
public synchronized void doBiff() throws IOException
- Implements:
- doBiff in interface MailDrop
protected void login() throws IOException
protected void cleanup()
protected void logout() throws IOException
protected void stat() throws IOException
protected void writeln(String line) throws IOException
protected String readln() throws IOException
protected void check(String line,
String err) throws MailDropException
protected boolean resultOK(String line)
public int getBiffState()
- Implements:
- getBiffState in interface MailDrop
public int getNumMessagesWaiting()
- Implements:
- getNumMessagesWaiting in interface MailDrop
protected void check(boolean status,
String response) throws MailDropException
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4
|