class Mail extends Object
Modifier and Type | Field and Description |
---|---|
(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 |
Modifier and Type | Method and Description |
---|---|
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) |
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
public Mail(String uidl)
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 validatedpublic static String getAddress(String address)
address
- public static boolean getRecipientsFromList(ArrayList<String> recipients, String text, boolean ok)
text
- comma-separatedrecipients
- out paramok
- will be returnedpublic static void appendRecipients(StringBuilder buf, ArrayList<String> recipients, String prefix)
buf
- out paramprefix
- prepended to the addresses