|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecti2p.susi.webmail.Mail
class Mail
data structure to hold a single message, mostly used with folder view and sorting
Field Summary | |
---|---|
(package private) String[] |
cc
|
String |
contentType
|
Date |
date
|
String |
dateString
|
String |
error
|
String |
formattedDate
|
String |
formattedSubject
|
String |
localFormattedDate
|
boolean |
markForDeletion
|
String |
quotedDate
|
String |
reply
|
String |
sender
|
String |
shortSender
|
String |
shortSubject
|
String |
subject
|
(package private) String[] |
to
|
String |
uidl
|
Constructor Summary | |
---|---|
Mail(String uidl)
|
Method Summary | |
---|---|
static void |
appendRecipients(StringBuilder buf,
ArrayList<String> recipients,
String prefix)
Adds all items from the list to the builder, separated by tabs. |
static String |
getAddress(String address)
Returns the first email address portion, enclosed by <> |
ReadBuffer |
getBody()
This contains the header also. |
ReadBuffer |
getHeader()
This may or may not contain the body also. |
MailPart |
getPart()
|
static boolean |
getRecipientsFromList(ArrayList<String> recipients,
String text,
boolean ok)
A little misnamed. |
int |
getSize()
|
boolean |
hasAttachment()
|
boolean |
hasBody()
|
boolean |
hasHeader()
|
boolean |
hasPart()
|
boolean |
isNew()
|
boolean |
isSpam()
|
void |
setBody(ReadBuffer rb)
|
void |
setHeader(ReadBuffer rb)
|
void |
setNew(boolean isNew)
|
void |
setSize(int size)
|
static boolean |
validateAddress(String address)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String sender
public String reply
public String subject
public String dateString
public String formattedSubject
public String formattedDate
public String localFormattedDate
public String shortSender
public String shortSubject
public String quotedDate
public final String uidl
public Date date
String[] to
String[] cc
public String contentType
public String error
public boolean markForDeletion
Constructor Detail |
---|
public Mail(String uidl)
Method Detail |
---|
public ReadBuffer getHeader()
public void setHeader(ReadBuffer rb)
public boolean hasHeader()
public ReadBuffer getBody()
public void setBody(ReadBuffer rb)
public boolean hasBody()
public MailPart getPart()
public boolean hasPart()
public int getSize()
public void setSize(int size)
public boolean isSpam()
public boolean isNew()
public void setNew(boolean isNew)
public boolean hasAttachment()
public static boolean validateAddress(String address)
address
- E-mail address to be validated
public static String getAddress(String address)
address
- public static boolean getRecipientsFromList(ArrayList<String> recipients, String text, boolean ok)
text
- comma-separatedrecipients
- out paramok
- will be returned
public static void appendRecipients(StringBuilder buf, ArrayList<String> recipients, String prefix)
buf
- out paramprefix
- prepended to the addresses
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |