Package | Description |
---|---|
org.apache.james.mime4j.field | |
org.apache.james.mime4j.field.address | |
org.apache.james.mime4j.message |
Modifier and Type | Method and Description |
---|---|
Mailbox |
MailboxField.getMailbox() |
Modifier and Type | Method and Description |
---|---|
static MailboxListField |
Fields.from(Mailbox... mailboxes)
Creates a From field for the specified mailbox addresses.
|
static MailboxListField |
Fields.from(Mailbox mailbox)
Creates a From field for the specified mailbox address.
|
static MailboxField |
Fields.mailbox(java.lang.String fieldName,
Mailbox mailbox)
Creates a mailbox field from the specified field name and mailbox
address.
|
static MailboxField |
Fields.sender(Mailbox mailbox)
Creates a Sender field for the specified mailbox address.
|
Modifier and Type | Method and Description |
---|---|
static MailboxListField |
Fields.from(java.lang.Iterable<Mailbox> mailboxes)
Creates a From field for the specified mailbox addresses.
|
static MailboxListField |
Fields.mailboxList(java.lang.String fieldName,
java.lang.Iterable<Mailbox> mailboxes)
Creates a mailbox-list field from the specified field name and mailbox
addresses.
|
Modifier and Type | Method and Description |
---|---|
Mailbox |
MailboxList.get(int index)
Gets an address.
|
static Mailbox |
Mailbox.parse(java.lang.String rawMailboxString)
Parses the specified raw string into a mailbox address.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Mailbox.doAddMailboxesTo(java.util.List<Mailbox> results) |
protected abstract void |
Address.doAddMailboxesTo(java.util.List<Mailbox> results)
Adds any mailboxes represented by this address into the given List.
|
protected void |
Group.doAddMailboxesTo(java.util.List<Mailbox> results) |
Constructor and Description |
---|
Group(java.lang.String name,
Mailbox... mailboxes) |
Constructor and Description |
---|
Group(java.lang.String name,
java.util.Collection<Mailbox> mailboxes) |
MailboxList(java.util.List<Mailbox> mailboxes,
boolean dontCopy) |
Modifier and Type | Method and Description |
---|---|
Mailbox |
Message.getSender()
Returns the value of the Sender header field of this message as
Mailbox object or null if it is not
present. |
Modifier and Type | Method and Description |
---|---|
void |
Message.setFrom(Mailbox... from)
Sets the From header field of this message to the specified
mailbox addresses.
|
void |
Message.setFrom(Mailbox from)
Sets the From header field of this message to the specified
mailbox address.
|
void |
Message.setSender(Mailbox sender)
Sets the Sender header field of this message to the specified
mailbox address.
|
Modifier and Type | Method and Description |
---|---|
void |
Message.setFrom(java.util.Collection<Mailbox> from)
Sets the From header field of this message to the specified
mailbox addresses.
|
Copyright © 2004-2012. All Rights Reserved.