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(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(Iterable<Mailbox> mailboxes)
Creates a From field for the specified mailbox addresses.
|
static MailboxListField |
Fields.mailboxList(String fieldName,
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(String rawMailboxString)
Parses the specified raw string into a mailbox address.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Mailbox.doAddMailboxesTo(List<Mailbox> results) |
protected abstract void |
Address.doAddMailboxesTo(List<Mailbox> results)
Adds any mailboxes represented by this address into the given List.
|
protected void |
Group.doAddMailboxesTo(List<Mailbox> results) |
Constructor and Description |
---|
Group(String name,
Mailbox... mailboxes) |
Constructor and Description |
---|
Group(String name,
Collection<Mailbox> mailboxes) |
MailboxList(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(Collection<Mailbox> from)
Sets the From header field of this message to the specified
mailbox addresses.
|
Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.