![]() |
Quadcap Embeddable Server |
A more sophisticated agent would scan the headers first and apply filters to certain messages without having to fetch the bodies.
Definition at line 70 of file Pop3Agent.java.
Public Member Functions | |
| void | write (OutputStream w) throws IOException |
| void | read (InputStream r) throws IOException |
| Pop3Agent () | |
| Default constructor for factory. | |
| void | run (Properties props, MessageHook hook) |
| Check for mail. | |
Package Functions | |
| void | getMail (MessageHook hook) throws IOException |
| Figure out what's new and deliver it. | |
| void | getMessages (MessageHook hook, ArrayList v) throws IOException |
| Get the specified list of messages. | |
| void | deleteMessages (ArrayList v) throws IOException |
| Delete the specified list of messages. | |
| UidlEntry | getUidlEntry (String uidl) |
| Search the map for a specified UIDL entry. | |
| UidlEntry | putUidlEntry (String uidl, int msgNum, Date d) |
| Create and store a new UidlEntry in the map. | |
Package Attributes | |
| HashMap | uidlMap = new HashMap() |
| String | hostName = null |
| int | portNumber = 110 |
| String | login = null |
| String | passwd = null |
| int | daysKeep = 999999 |
| boolean | enabled = true |
| Session | pop3 = null |
|
|
Default constructor for factory.
Definition at line 104 of file Pop3Agent.java. |
|
|
Delete the specified list of messages.
Definition at line 264 of file Pop3Agent.java. References com.quadcap.pop3.client.Session.dele(), com.quadcap.pop3.client.Pop3Agent.deleteMessages(), com.quadcap.pop3.client.UidlEntry.getMessageNumber(), com.quadcap.pop3.client.UidlEntry.getUidl(), com.quadcap.pop3.client.Pop3Agent.pop3, and com.quadcap.pop3.client.Pop3Agent.uidlMap. Referenced by com.quadcap.pop3.client.Pop3Agent.deleteMessages(), and com.quadcap.pop3.client.Pop3Agent.getMail(). |
|
|
Figure out what's new and deliver it. Figure out what's old and delete it. Definition at line 156 of file Pop3Agent.java. References com.quadcap.pop3.client.Pop3Agent.daysKeep, com.quadcap.pop3.client.Pop3Agent.deleteMessages(), com.quadcap.pop3.client.UidlEntry.getFirstSeen(), com.quadcap.pop3.client.Pop3Agent.getMail(), com.quadcap.pop3.client.Pop3Agent.getMessages(), com.quadcap.pop3.client.Pop3Agent.getUidlEntry(), com.quadcap.pop3.client.UidlEntry.markedForDeletion, com.quadcap.pop3.client.Pop3Agent.pop3, com.quadcap.pop3.client.Pop3Agent.putUidlEntry(), com.quadcap.pop3.client.UidlEntry.setMessageNumber(), and com.quadcap.pop3.client.Session.uidl(). Referenced by com.quadcap.pop3.client.Pop3Agent.getMail(), and com.quadcap.pop3.client.Pop3Agent.run(). |
|
||||||||||||
|
Get the specified list of messages.
Definition at line 219 of file Pop3Agent.java. References com.quadcap.pop3.client.Session.dele(), com.quadcap.pop3.client.UidlEntry.getMessageNumber(), com.quadcap.pop3.client.Pop3Agent.getMessages(), com.quadcap.pop3.client.UidlEntry.markedForDeletion, com.quadcap.pop3.client.Pop3Agent.pop3, com.quadcap.pop3.client.Session.retr(), and com.quadcap.pop3.client.Session.top(). Referenced by com.quadcap.pop3.client.Pop3Agent.getMail(), and com.quadcap.pop3.client.Pop3Agent.getMessages(). |
|
|
Search the map for a specified UIDL entry.
Definition at line 280 of file Pop3Agent.java. References com.quadcap.pop3.client.Pop3Agent.getUidlEntry(), and com.quadcap.pop3.client.Pop3Agent.uidlMap. Referenced by com.quadcap.pop3.client.Pop3Agent.getMail(), and com.quadcap.pop3.client.Pop3Agent.getUidlEntry(). |
|
||||||||||||||||
|
Create and store a new UidlEntry in the map.
Definition at line 293 of file Pop3Agent.java. References com.quadcap.pop3.client.Pop3Agent.putUidlEntry(), and com.quadcap.pop3.client.Pop3Agent.uidlMap. Referenced by com.quadcap.pop3.client.Pop3Agent.getMail(), and com.quadcap.pop3.client.Pop3Agent.putUidlEntry(). |
|
|
Definition at line 89 of file Pop3Agent.java. References com.quadcap.pop3.client.UidlEntry.getUidl(), com.quadcap.pop3.client.Pop3Agent.read(), and com.quadcap.pop3.client.Pop3Agent.uidlMap. Referenced by com.quadcap.pop3.client.Pop3Agent.read(), and com.quadcap.pop3.client.Pop3Service.readAgent(). |
|
||||||||||||
|
|
Definition at line 81 of file Pop3Agent.java. References com.quadcap.pop3.client.UidlEntry.toString(), com.quadcap.pop3.client.Pop3Agent.uidlMap, and com.quadcap.pop3.client.Pop3Agent.write(). Referenced by com.quadcap.pop3.client.Pop3Agent.write(), and com.quadcap.pop3.client.Pop3Service.writeAgent(). |
|
|
Definition at line 76 of file Pop3Agent.java. Referenced by com.quadcap.pop3.client.Pop3Agent.getMail(), and com.quadcap.pop3.client.Pop3Agent.run(). |
|
|
Definition at line 77 of file Pop3Agent.java. Referenced by com.quadcap.pop3.client.Pop3Agent.run(). |
|
|
Definition at line 72 of file Pop3Agent.java. Referenced by com.quadcap.pop3.client.Pop3Agent.run(). |
|
|
Definition at line 74 of file Pop3Agent.java. Referenced by com.quadcap.pop3.client.Pop3Agent.run(). |
|
|
Definition at line 75 of file Pop3Agent.java. Referenced by com.quadcap.pop3.client.Pop3Agent.run(). |
|
|
Definition at line 79 of file Pop3Agent.java. Referenced by com.quadcap.pop3.client.Pop3Agent.deleteMessages(), com.quadcap.pop3.client.Pop3Agent.getMail(), com.quadcap.pop3.client.Pop3Agent.getMessages(), and com.quadcap.pop3.client.Pop3Agent.run(). |
|
|
Definition at line 73 of file Pop3Agent.java. Referenced by com.quadcap.pop3.client.Pop3Agent.run(). |
|