ePOST API

rice.email.proxy.mailbox.postbox
Class PostMessage

java.lang.Object
  extended by rice.email.proxy.mailbox.postbox.PostMessage
All Implemented Interfaces:
StoredMessage

public class PostMessage
extends java.lang.Object
implements StoredMessage


Field Summary
static IdFactory factory
           
static java.lang.String IMAGE_URL_HEADER_LINE
           
static java.lang.String SECURE_HEADER_LINE
           
static java.lang.String UNSECURE_HEADER_LINE
           
 
Constructor Summary
PostMessage(StoredEmail storedEmail, int sequence, Folder folder)
           
 
Method Summary
protected static PostUserAddress[] getAddresses(MimeParser parser, java.lang.String field, Environment env)
           
 FlagList getFlagList()
           
 Folder getFolder()
           
 long getInternalDate()
           
 Email getMessage()
           
 int getSequenceNumber()
           
 StoredEmail getStoredEmail()
           
 int getUID()
           
static Email parseEmail(java.net.InetAddress local, java.net.InetAddress remote, PostEntityAddress[] addresses, Resource content, Environment env)
           
static Email parseEmail(java.net.InetAddress local, java.net.InetAddress remote, PostEntityAddress[] recipients, Resource content, PostEntityAddress address, Environment env)
           
static Email parseEmail(java.net.InetAddress local, java.net.InetAddress remote, Resource content, Environment env)
           
static javax.mail.internet.MimeMessage processEmailMessagePartSpecial(EmailMessagePart part, Environment env)
           
 void purge()
           
 void setSequenceNumber(int num)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNSECURE_HEADER_LINE

public static java.lang.String UNSECURE_HEADER_LINE

SECURE_HEADER_LINE

public static java.lang.String SECURE_HEADER_LINE

IMAGE_URL_HEADER_LINE

public static java.lang.String IMAGE_URL_HEADER_LINE

factory

public static IdFactory factory
Constructor Detail

PostMessage

public PostMessage(StoredEmail storedEmail,
                   int sequence,
                   Folder folder)
Method Detail

getUID

public int getUID()
Specified by:
getUID in interface StoredMessage

getInternalDate

public long getInternalDate()
Specified by:
getInternalDate in interface StoredMessage

setSequenceNumber

public void setSequenceNumber(int num)

getSequenceNumber

public int getSequenceNumber()
Specified by:
getSequenceNumber in interface StoredMessage

getFolder

public Folder getFolder()

getStoredEmail

public StoredEmail getStoredEmail()

getMessage

public Email getMessage()
                 throws MailboxException
Specified by:
getMessage in interface StoredMessage
Throws:
MailboxException

getFlagList

public FlagList getFlagList()
Specified by:
getFlagList in interface StoredMessage

purge

public void purge()
           throws MailboxException
Specified by:
purge in interface StoredMessage
Throws:
MailboxException

getAddresses

protected static PostUserAddress[] getAddresses(MimeParser parser,
                                                java.lang.String field,
                                                Environment env)
                                         throws MailboxException
Throws:
MailboxException

parseEmail

public static Email parseEmail(java.net.InetAddress local,
                               java.net.InetAddress remote,
                               Resource content,
                               Environment env)
                        throws MailboxException
Throws:
MailboxException

parseEmail

public static Email parseEmail(java.net.InetAddress local,
                               java.net.InetAddress remote,
                               PostEntityAddress[] addresses,
                               Resource content,
                               Environment env)
                        throws MailboxException
Throws:
MailboxException

parseEmail

public static Email parseEmail(java.net.InetAddress local,
                               java.net.InetAddress remote,
                               PostEntityAddress[] recipients,
                               Resource content,
                               PostEntityAddress address,
                               Environment env)
                        throws MailboxException
Throws:
MailboxException

processEmailMessagePartSpecial

public static javax.mail.internet.MimeMessage processEmailMessagePartSpecial(EmailMessagePart part,
                                                                             Environment env)
                                                                      throws MailboxException,
                                                                             javax.mail.MessagingException
Throws:
MailboxException
javax.mail.MessagingException

ePOST API

Copyright © 2001-2005 - Rice Pastry.