|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMailMessageStorageBatch
IMailMessageStorageBatch - Extends IMailMessageStorage for mail systems which support to request single header names.
| Field Summary |
|---|
| Fields inherited from interface com.openexchange.mail.api.IMailMessageStorage |
|---|
EMPTY_RETVAL |
| Method Summary | |
|---|---|
void |
updateMessageColorLabel(java.lang.String folder,
int colorLabel)
An optional method that updates the color label of all messages located in given folder. |
void |
updateMessageFlags(java.lang.String folder,
int flags,
boolean set)
Updates the flags of all messages located in given folder. |
| Methods inherited from interface com.openexchange.mail.api.IMailMessageStorage |
|---|
appendMessages, copyMessages, deleteMessages, getAllMessages, getAttachment, getDeletedMessages, getImageAttachment, getMessage, getMessages, getNewAndModifiedMessages, getThreadSortedMessages, getUnreadMessages, moveMessages, releaseResources, saveDraft, searchMessages, updateMessageColorLabel, updateMessageFlags |
| Method Detail |
|---|
void updateMessageColorLabel(java.lang.String folder,
int colorLabel)
throws MailException
If no mail could be found for a given mail ID, it is treated as a no-op.
The underlying mailing system needs to support some kind of user-definable flags to support this method. Otherwise this method should be left unchanged with an empty body.
The color labels are user flags with the common prefix "cl_" and its numeric color code appended (currently numbers 0 to
10).
folder - The folder full namecolorLabel - The color label to apply
MailException - If color label cannot be updated
void updateMessageFlags(java.lang.String folder,
int flags,
boolean set)
throws MailException
set is
true the affected flags denoted by flags are added; otherwise removed.
If no mail could be found for a given mail ID, it is treated as a no-op.
System flags are:
If mail folder in question supports user flags (storing individual strings per message) the virtual flags can also be updated through
this routine; e.g. MailMessage.FLAG_FORWARDED.
Moreover this routine checks for any spam related actions; meaning the MailMessage.FLAG_SPAM shall be enabled/disabled. Thus
the SpamHandler#handleSpam(String, String[], boolean, MailAccess)/
SpamHandler#handleHam(String, String[], boolean, MailAccess) methods needs to be executed.
folder - The folder full nameflags - The bit pattern for the flags to alterset - true to enable the flags; otherwise false
MailException - If system flags cannot be updated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||