Quadcap Embeddable Server

com.quadcap.pop3.client.MailSuck Class Reference

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

com.quadcap.pop3.client.MessageHook List of all members.

Detailed Description

Author:
Stan Bailes

Definition at line 25 of file MailSuck.java.

Public Member Functions

void runMany (String accountsFile) throws Exception
void init (Properties p) throws Exception
 Initialize the hook with its property set.

boolean passAllHeaders ()
 Return true if the call to boolean passHeaders(Map headers) will always return true, so the message receiver can avoid calling it.

boolean passHeaders (Map headers)
 A hook first gets called with the parsed headers from the message.

boolean passMessage (InputStream is) throws Exception
 The hook is called to process the entire message (including headers) as an octet stream.


Static Public Member Functions

void main (String[] args)
 Suck mail <host> <user> <passwd> <file>.


Package Functions

void close ()

Package Attributes

boolean delete = false
OutputStream os


Member Function Documentation

void com.quadcap.pop3.client.MailSuck.close  )  [package]
 

Definition at line 90 of file MailSuck.java.

References com.quadcap.pop3.client.MailSuck.os.

Referenced by com.quadcap.pop3.client.MailSuck.main(), and com.quadcap.pop3.client.MailSuck.runMany().

void com.quadcap.pop3.client.MailSuck.init Properties  p  )  throws Exception
 

Initialize the hook with its property set.

Implements com.quadcap.pop3.client.MessageHook.

Definition at line 83 of file MailSuck.java.

References com.quadcap.pop3.client.MailSuck.init(), and com.quadcap.pop3.client.MailSuck.os.

Referenced by com.quadcap.pop3.client.MailSuck.init(), com.quadcap.pop3.client.MailSuck.main(), and com.quadcap.pop3.client.MailSuck.runMany().

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

Suck mail <host> <user> <passwd> <file>.

Definition at line 32 of file MailSuck.java.

References com.quadcap.pop3.client.MailSuck.close(), com.quadcap.pop3.client.MailSuck.init(), com.quadcap.pop3.client.MailSuck.main(), com.quadcap.pop3.client.Pop3Agent.run(), and com.quadcap.pop3.client.MailSuck.runMany().

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

boolean com.quadcap.pop3.client.MailSuck.passAllHeaders  ) 
 

Return true if the call to boolean passHeaders(Map headers) will always return true, so the message receiver can avoid calling it.

Implements com.quadcap.pop3.client.MessageHook.

Definition at line 104 of file MailSuck.java.

boolean com.quadcap.pop3.client.MailSuck.passHeaders Map  headers  ) 
 

A hook first gets called with the parsed headers from the message.

If the hook returns 'true' to this call, it will be called again to process the body using sendMessage(), below.

Implements com.quadcap.pop3.client.MessageHook.

Definition at line 113 of file MailSuck.java.

References com.quadcap.pop3.client.MailSuck.passHeaders().

Referenced by com.quadcap.pop3.client.MailSuck.passHeaders().

boolean com.quadcap.pop3.client.MailSuck.passMessage InputStream  is  )  throws Exception
 

The hook is called to process the entire message (including headers) as an octet stream.

Returns:
false if the message is to be retained in the store, true to delete it.

Implements com.quadcap.pop3.client.MessageHook.

Definition at line 124 of file MailSuck.java.

References com.quadcap.pop3.client.MailSuck.os, and com.quadcap.pop3.client.MailSuck.passMessage().

Referenced by com.quadcap.pop3.client.MailSuck.passMessage().

void com.quadcap.pop3.client.MailSuck.runMany String  accountsFile  )  throws Exception
 

Definition at line 58 of file MailSuck.java.

References com.quadcap.pop3.client.MailSuck.close(), com.quadcap.pop3.client.MailSuck.init(), com.quadcap.pop3.client.Pop3Agent.run(), and com.quadcap.pop3.client.MailSuck.runMany().

Referenced by com.quadcap.pop3.client.MailSuck.main(), and com.quadcap.pop3.client.MailSuck.runMany().


Member Data Documentation

boolean com.quadcap.pop3.client.MailSuck.delete = false [package]
 

Definition at line 26 of file MailSuck.java.

OutputStream com.quadcap.pop3.client.MailSuck.os [package]
 

Definition at line 27 of file MailSuck.java.

Referenced by com.quadcap.pop3.client.MailSuck.close(), com.quadcap.pop3.client.MailSuck.init(), and com.quadcap.pop3.client.MailSuck.passMessage().