jaugment2.mail
Class MailSender.MailSenderMessage

java.lang.Object
  |
  +--jaugment2.mail.MailSender.MailSenderMessage
Enclosing class:
MailSender

public static class MailSender.MailSenderMessage
extends java.lang.Object
implements java.io.Serializable

JavaMail-messages are connected to a store and thus cannot be send over the wire so we have to wrasp them like this

See Also:
Serialized Form

Field Summary
 java.lang.Object content
          Content may be null as it is a slow operation to get the content of all the mail in a folder
static int FLAG_DELETED
           
static int FLAG_DRAFT
           
static int FLAG_FLAGGED
           
static int FLAG_REAT
           
 int flags
           
 javax.mail.Address[] from
           
 MailSender.MessageHandle handle
           
 java.util.Date sentDate
           
 java.lang.String subject
           
 
Constructor Summary
MailSender.MailSenderMessage(MailSender.MessageHandle handle, java.lang.Object content, java.lang.String subject, java.util.Date sentDate, javax.mail.Address[] from, int flags)
           
 
Method Summary
 boolean copyToFolder(MailSender.FolderHandle f, MailSender proxy)
           
 boolean moveToFolder(MailSender.FolderHandle f, MailSender proxy)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

handle

public MailSender.MessageHandle handle

content

public java.lang.Object content
Content may be null as it is a slow operation to get the content of all the mail in a folder

subject

public java.lang.String subject

sentDate

public java.util.Date sentDate

from

public javax.mail.Address[] from

flags

public int flags

FLAG_REAT

public static final int FLAG_REAT

FLAG_DELETED

public static final int FLAG_DELETED

FLAG_DRAFT

public static final int FLAG_DRAFT

FLAG_FLAGGED

public static final int FLAG_FLAGGED
Constructor Detail

MailSender.MailSenderMessage

public MailSender.MailSenderMessage(MailSender.MessageHandle handle,
                                    java.lang.Object content,
                                    java.lang.String subject,
                                    java.util.Date sentDate,
                                    javax.mail.Address[] from,
                                    int flags)
Method Detail

copyToFolder

public boolean copyToFolder(MailSender.FolderHandle f,
                            MailSender proxy)
                     throws java.rmi.RemoteException

moveToFolder

public boolean moveToFolder(MailSender.FolderHandle f,
                            MailSender proxy)
                     throws java.rmi.RemoteException