i2p.susi.webmail
Class Mail

java.lang.Object
  extended by i2p.susi.webmail.Mail

public class Mail
extends java.lang.Object

data structure to hold a single message, mostly used with folder view and sorting

Author:
susi

Field Summary
 ReadBuffer body
           
(package private)  java.lang.Object[] cc
           
 java.util.Date date
           
static java.lang.String DATEFORMAT
           
 java.lang.String dateString
           
 boolean deleted
           
 java.lang.String error
           
 java.lang.String formattedDate
           
 java.lang.String formattedSender
           
 java.lang.String formattedSubject
           
 ReadBuffer header
           
 int id
           
 boolean markForDeletion
           
 MailPart part
           
 java.lang.String quotedDate
           
 java.lang.String reply
           
 java.lang.String sender
           
 java.lang.String shortSender
           
 java.lang.String shortSubject
           
 int size
           
 java.lang.String subject
           
(package private)  java.lang.Object[] to
           
 java.lang.String uidl
           
static java.lang.String unknown
           
 
Constructor Summary
Mail()
           
 
Method Summary
static void appendRecipients(java.lang.StringBuilder buf, java.util.ArrayList recipients, java.lang.String prefix)
           
static java.lang.String getAddress(java.lang.String address)
           
static boolean getRecipientsFromList(java.util.ArrayList recipients, java.lang.String text, boolean ok)
           
 void parseHeaders()
           
static boolean validateAddress(java.lang.String address)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATEFORMAT

public static final java.lang.String DATEFORMAT
See Also:
Constant Field Values

unknown

public static final java.lang.String unknown
See Also:
Constant Field Values

id

public int id

size

public int size

sender

public java.lang.String sender

reply

public java.lang.String reply

subject

public java.lang.String subject

dateString

public java.lang.String dateString

formattedSender

public java.lang.String formattedSender

formattedSubject

public java.lang.String formattedSubject

formattedDate

public java.lang.String formattedDate

shortSender

public java.lang.String shortSender

shortSubject

public java.lang.String shortSubject

quotedDate

public java.lang.String quotedDate

uidl

public java.lang.String uidl

date

public java.util.Date date

header

public ReadBuffer header

body

public ReadBuffer body

part

public MailPart part

to

java.lang.Object[] to

cc

java.lang.Object[] cc

error

public java.lang.String error

markForDeletion

public boolean markForDeletion

deleted

public boolean deleted
Constructor Detail

Mail

public Mail()
Method Detail

validateAddress

public static boolean validateAddress(java.lang.String address)
Parameters:
address -
Returns:

getAddress

public static java.lang.String getAddress(java.lang.String address)
Parameters:
address -
Returns:

getRecipientsFromList

public static boolean getRecipientsFromList(java.util.ArrayList recipients,
                                            java.lang.String text,
                                            boolean ok)

appendRecipients

public static void appendRecipients(java.lang.StringBuilder buf,
                                    java.util.ArrayList recipients,
                                    java.lang.String prefix)

parseHeaders

public void parseHeaders()