You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



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


KEEP

   static final String KEEP


DELETE

   static final String DELETE


fHost

   String fHost


fPort

   int fPort


fUser

   String fUser


fPass

   String fPass


fFolder

   Folder fFolder


fNumWaiting

   int fNumWaiting


fSocket

   Socket fSocket


fInput

   InputStream fInput


fOutput

   DataOutputStream fOutput


stat_msgcount

   int stat_msgcount


stat_octetcount

   int stat_octetcount


popstatefile

   File popstatefile


uidlUnimplemented

   boolean uidlUnimplemented


xtndUnimplemented

   boolean xtndUnimplemented


leaveMessagesOnServer

   boolean leaveMessagesOnServer


DEBUG

   static final boolean DEBUG


inbuffer

   StringBuffer inbuffer



Constructors


PopMailDrop

   PopMailDrop() 



Methods


Spew

   static void Spew(String s) 


clearAssumptionsAboutServer

   protected void clearAssumptionsAboutServer() 


setHost

   void setHost(String hostname) 


setPort

   void setPort(int port) 


setUser

   void setUser(String username) 


setPassword

   void setPassword(String password) 


setDestinationFolder

   void setDestinationFolder(Folder dest) 


getDestinationFolder

   Folder getDestinationFolder() 


setPopStateFile

   void setPopStateFile(File f) 


getPopStateFile

   File getPopStateFile() 


setLeaveMessagesOnServer

   void setLeaveMessagesOnServer(boolean value) 


getLeaveMessagesOnServer

   boolean getLeaveMessagesOnServer() 


fetchOrCheck

   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.)



loadLeaveOnServerList

   protected Hashtable loadLeaveOnServerList() 


saveLeaveOnServerList

   protected void saveLeaveOnServerList(Hashtable table)  throws IOException


fetchNewMail

   public synchronized void fetchNewMail()  throws IOException
Implements:
fetchNewMail in interface MailDrop


doBiff

   public synchronized void doBiff()  throws IOException
Implements:
doBiff in interface MailDrop


login

   protected void login()  throws IOException


cleanup

   protected void cleanup() 


logout

   protected void logout()  throws IOException


stat

   protected void stat()  throws IOException


writeln

   protected void writeln(String line)  throws IOException


readln

   protected String readln()  throws IOException


check

   protected void check(String line, 
                        String err)  throws MailDropException


resultOK

   protected boolean resultOK(String line) 


getBiffState

   public int getBiffState() 
Implements:
getBiffState in interface MailDrop


getNumMessagesWaiting

   public int getNumMessagesWaiting() 
Implements:
getNumMessagesWaiting in interface MailDrop


check

   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