jSyncManager

org.jSyncManager.Conduit.Email
Class PopMail

java.lang.Object
  |
  +--org.jSyncManager.API.Protocol.Util.DLPRecord
        |
        +--org.jSyncManager.API.Protocol.Util.StdApps.MailRecord
              |
              +--org.jSyncManager.Conduit.Email.Email_Base
                    |
                    +--org.jSyncManager.Conduit.Email.PopMail
All Implemented Interfaces:
java.io.Serializable

public class PopMail
extends Email_Base

Demonstrate POP mail using JavaMail. Requires mail.jar activation.jar Sample run: java -cp .;mail.jar;activation.jar PopMail

See Also:
Serialized Form

Fields inherited from class org.jSyncManager.API.Protocol.Util.StdApps.MailRecord
ADDRESSING_FLAG, ADDRESSING_FLAG_ROTATE, ADDRESSING_SENT_BCC, ADDRESSING_SENT_CC, ADDRESSING_SENT_TO, CONFIRM_DELIVERY_FLAG, CONFIRM_DELIVERY_FLAG_ROTATE, CONFIRM_READ_FLAG, CONFIRM_READ_FLAG_ROTATE, PRIORITY_FLAG, PRIORITY_FLAG_ROTATE, PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_NORMAL, rb, READ_FLAG, READ_FLAG_ROTATE, SIGNATURE_FLAG, SIGNATURE_FLAG_ROTATE
 
Fields inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord
ARCHIVED, attributes, BUSY, category, data, DATA_INCLUDED, DELETE_ALL_IN_CATEGORY, DELETE_ALL_RECORDS, DELETED, DIRTY, index, inputData, recordID, recordSize, SECRET, SORT_DATABASE
 
Constructor Summary
PopMail()
           
PopMail(Email_Base base)
           
PopMail(MailRecord record, Email_Base base)
           
 
Method Summary
protected  void addMsg(javax.mail.internet.MimeMessage message)
          Setter for property messages.
 boolean equals(PopMail obj)
           
 java.util.Vector fetch()
           
 java.util.Vector getEmails()
          Getter for property emails.
 java.util.Vector getMsgs()
          Getter for property messages.
 javax.mail.Session getSession()
          Getter for property session.
 javax.mail.Store getStore()
          Getter for property store.
static void main(java.lang.String[] args)
           
 void setEmails(java.util.Vector emails)
          Setter for property emails.
 void setSession()
          Setter for property session.
 void setSession(javax.mail.Session session)
          Setter for property session.
 void setStore()
          Setter for property store.
 void setStore(javax.mail.Store store)
          Setter for property store.
 
Methods inherited from class org.jSyncManager.Conduit.Email.Email_Base
getConduitHandler, getFrom, getHost, getName, getPort, getProps, getPwd, getUserid, setConduitHandler, setFrom, setHost, setMailRecord, setName, setPort, setPort, setProps, setPwd, setUserid, toString
 
Methods inherited from class org.jSyncManager.API.Protocol.Util.StdApps.MailRecord
generateData, getAddressing, getBCC, getCC, getConfirmDeliveryFlag, getConfirmReadFlag, getFlags, getMessageBody, getPriority, getReadFlag, getReplyTo, getSentTo, getSignatureFlag, getSubject, getTime, getTo, parseFields, setAddressing, setBCC, setCC, setConfirmDeliveryFlag, setConfirmReadFlag, setFlags, setMessageBody, setPriority, setReadFlag, setRecord, setReplyTo, setSentTo, setSignatureFlag, setSubject, setTime, setTo
 
Methods inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord
checkAttribute, getAttributes, getCategory, getData, getIndex, getRecordID, getRecordSize, setAttributes, setCategory, setData, setIndex, setRecordID, setRecordSize
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PopMail

public PopMail()
        throws javax.mail.NoSuchProviderException,
               javax.mail.MessagingException

PopMail

public PopMail(MailRecord record,
               Email_Base base)
        throws javax.mail.NoSuchProviderException,
               javax.mail.MessagingException

PopMail

public PopMail(Email_Base base)
        throws javax.mail.NoSuchProviderException,
               javax.mail.MessagingException
Method Detail

main

public static void main(java.lang.String[] args)

fetch

public java.util.Vector fetch()
                       throws javax.mail.NoSuchProviderException,
                              javax.mail.MessagingException,
                              java.io.IOException

equals

public boolean equals(PopMail obj)

getEmails

public java.util.Vector getEmails()
Getter for property emails.
Returns:
Value of property emails.

setEmails

public void setEmails(java.util.Vector emails)
Setter for property emails.
Parameters:
emails - New value of property emails.

getStore

public javax.mail.Store getStore()
                          throws javax.mail.NoSuchProviderException
Getter for property store.
Returns:
Value of property store.

setStore

public void setStore()
              throws javax.mail.NoSuchProviderException
Setter for property store. Gets store from session.

setStore

public void setStore(javax.mail.Store store)
Setter for property store.
Parameters:
store - New value of property store.

getSession

public javax.mail.Session getSession()
Getter for property session.
Returns:
Value of property session.

setSession

public void setSession()
Setter for property session. Sets session from default.

setSession

public void setSession(javax.mail.Session session)
Setter for property session.
Parameters:
session - New value of property session.

getMsgs

public java.util.Vector getMsgs()
Getter for property messages.
Returns:
Value of property messages.

addMsg

protected void addMsg(javax.mail.internet.MimeMessage message)
Setter for property messages.
Parameters:
message - New value of property messages.

jSyncManager

Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.