| com.atlassian.confluence.mail.MailContentManager |
Known Indirect Subclasses
|
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.confluence.core.ContentEntityManager
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Get a mail by its database id.
| |||||||||||
Get a mail by its message-id.
| |||||||||||
Get all mails with the matching message-id.
| |||||||||||
removes mail and its associated attachments
| |||||||||||
Create a new mail content object in the given space for the given mimeMessage.
| |||||||||||
Create a new mail content object in the given space for the given raw RFC822 message.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.confluence.core.ContentEntityManager
| |||||||||||
Get a mail by its database id. If the mail does not exist, null is returned.
Get a mail by its message-id. If the mail does not exist, or if there are multiple mails with the same message id, null is returned
Get all mails with the matching message-id. Mostly you won't need to use this, as you'll generally be looking for a single message, message ids are reasonably unique, and the single-mail method is less code.
| messageId | the message id of the mails to retrieve |
|---|
Create a new mail content object in the given space for the given mimeMessage. The message should be in the raw form it was received in. All post-arrival munging such as filter application, multipart content decisions and attachment removal happen inside this method
| space | the space to attach the message to |
|---|---|
| mimeMessage | the message that has been received |
| ConfluenceException |
|---|
Create a new mail content object in the given space for the given raw RFC822 message. The message should be in the raw form it was received in. All post-arrival munging such as filter application, multipart content decisions and attachment removal happen inside this method
We use a byte array because RFC822 messages are streams of bytes - character encoding happens after the header is parsed
| space | the space to attach the message to |
|---|---|
| rawMessage | the message that has been received |