public class MovingMessage extends Object
| Constructor and Description |
|---|
MovingMessage() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRecipient(MailAddress s)
Adds an address from which the email was sent.
|
AuthenticationState |
getAuthenticationState()
Retrieves the state object with the data used for authentication.
|
MimeMessage |
getMessage()
Retrieves the contents of the mail message, including all mail headers and the body.
|
MailAddress |
getReturnPath()
Retrieves the address from which the email was sent.
|
List<MailAddress> |
getToAddresses()
Retrieves the addresses from which the email was sent.
|
void |
removeRecipient(MailAddress s)
Removes an address from the list of addresses from which the email was sent.
|
void |
setAuthenticationState(AuthenticationState authenticationState)
Retrieves the state object with the data used for authentication.
|
void |
setMimeMessage(MimeMessage message)
Sets or overwrites the contents of the mail message, including all mail headers
and the body.
|
void |
setReturnPath(MailAddress fromAddress)
Sets or overwrites the address from which the email was sent.
|
String |
toString() |
public AuthenticationState getAuthenticationState()
PLAIN and LOGIN
authentication is supported. You can use this, for example, to retrieve the username
or password that was sent by the client.
Note that this will return null when no authentication was performed or needed.public void setAuthenticationState(AuthenticationState authenticationState)
public List<MailAddress> getToAddresses()
RCPT TO addresses from the SMTP envelope, not the TO
addresses from the mail header.public MimeMessage getMessage()
public MailAddress getReturnPath()
MAIL FROM address from the SMTP envelope, not the FROM
address(es) from the mail header.public void setReturnPath(MailAddress fromAddress)
MAIL FROM address from the SMTP envelope, not the FROM
address(es) from the mail header.fromAddress - The address from which the email was sent.public void addRecipient(MailAddress s)
RCPT TO
addresses from the SMTP envelope, not the TO addresses from the mail header.public void removeRecipient(MailAddress s)
RCPT TO addresses from the SMTP envelope, not the TO
addresses from the mail header.public void setMimeMessage(MimeMessage message)
message - The message that was sent.Copyright © 2006–2022 Icegreen Technologies. All rights reserved.