Modifier and Type | Field and Description |
---|---|
(package private) String[] |
cc
May be null.
|
String |
contentType |
Date |
date |
String |
dateString |
String |
error |
String |
formattedDate |
(package private) static byte[] |
HEADER_MATCH
Also used by MailPart
See MailPart for why we don't do \r\n\r\n
|
String |
localFormattedDate |
boolean |
markForDeletion |
String |
messageID |
String |
quotedDate |
String |
reply |
String |
sender |
String |
shortSender |
String |
shortSubject |
String |
subject |
(package private) String[] |
to
May be null.
|
String |
uidl |
Modifier and Type | Method and Description |
---|---|
static void |
appendRecipients(PrintWriter out,
String[] recipients,
String prefix)
Adds all items from the array
to the builder, separated by commas
This is for display of a forwarded email.
|
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 <>
|
Buffer |
getBody()
This contains the header also.
|
Buffer |
getHeader()
This may or may not contain the body also.
|
MailPart |
getPart() |
static boolean |
getRecipientsFromList(ArrayList<String> recipients,
String[] ccs,
boolean ok)
A little misnamed.
|
static boolean |
getRecipientsFromList(ArrayList<String> recipients,
String text,
boolean ok)
A little misnamed.
|
long |
getSize() |
boolean |
hasAttachment() |
boolean |
hasBody() |
boolean |
hasHeader() |
boolean |
hasPart() |
boolean |
isNew() |
boolean |
isSpam() |
void |
setBody(Buffer rb) |
void |
setHeader(Buffer rb) |
void |
setNew(boolean isNew) |
void |
setSize(long size) |
static boolean |
validateAddress(String address) |
static final byte[] HEADER_MATCH
public String sender
public String reply
public String subject
public String dateString
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 messageID
public String error
public boolean markForDeletion
public Mail(String uidl)
public Buffer getHeader()
public void setHeader(Buffer rb)
public boolean hasHeader()
public Buffer getBody()
public void setBody(Buffer rb)
public boolean hasBody()
public MailPart getPart()
public boolean hasPart()
public long getSize()
public void setSize(long 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 boolean getRecipientsFromList(ArrayList<String> recipients, String[] ccs, boolean ok)
recipients
- out paramok
- will be returnedpublic static void appendRecipients(StringBuilder buf, ArrayList<String> recipients, String prefix)
buf
- out paramprefix
- prepended to the addressespublic static void appendRecipients(PrintWriter out, String[] recipients, String prefix)
prefix
- prepended to the addresses, includes trailing ": "