com.openexchange.mail.usersetting
Class UserSettingMail

java.lang.Object
  extended by com.openexchange.mail.usersetting.UserSettingMail
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public final class UserSettingMail
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

UserSettingMail - User's mail settings.

Author:
Thorben Betten
See Also:
Serialized Form

Nested Class Summary
static class UserSettingMail.Signature
          UserSettingMail.Signature - The mail signature.
 
Field Summary
static int INT_ALLOW_HTML_IMAGES
          If this bit is set, it is allowed to display images which appear in HTML content of a message.
static int INT_APPEND_VCARD
          If this bit is set, a VCard created from user's contact data is appended to a sent message
static int INT_DISPLAY_HTML_INLINE_CONTENT
          If this bit is set, html content is displayed on message display
static int INT_FORWARD_AS_ATTACHMENT
          If this bit is set, a forwarded message is appended as an message/rfc822 attachment instead of an inline forward
static int INT_HARD_DELETE_MSGS
          If this bit is set, no copy of a deleted message is created in default "trash" folder.
static int INT_IGNORE_ORIGINAL_TEXT_ON_REPLY
          If this bit is set, no message body text is extracted (and displayed) from the message to which the user replies
static int INT_MSG_PREVIEW
          This constant is currently not in use
static int INT_NO_COPY_INTO_SENT_FOLDER
          If this bit is set, no copy of a sent mail is created in default "sent" folder
static int INT_NOTIFY_APPOINTMENTS
          If this bit is set, the user will receive notification messages on appointment events (creation, deletion & change)
static int INT_NOTIFY_APPOINTMENTS_CONFIRM_OWNER
          If this bit is set, the user will receive notification messages on appointment events (accept, decline & tentatively accepted) as the appointment's owner.
static int INT_NOTIFY_APPOINTMENTS_CONFIRM_PARTICIPANT
          If this bit is set, the user will receive notification messages on appointment events (accept, decline & tentatively accepted) as an appointment's participant.
static int INT_NOTIFY_ON_READ_ACK
          If this bit is set, the user is notified if a message contains a read acknowledgment
static int INT_NOTIFY_TASKS
          If this bit is set, the user will receive notification messages on task events (creation, deletion & change)
static int INT_NOTIFY_TASKS_CONFIRM_OWNER
          If this bit is set, the user will receive notification messages on task events (accept, decline & tentatively accepted) as the task's owner.
static int INT_NOTIFY_TASKS_CONFIRM_PARTICIPANT
          If this bit is set, the user will receive notification messages on task events (accept, decline & tentatively accepted) as a task's participant.
static int INT_REPLY_ALL_CC
          If this bit is set, the reply-all method will put all recipients except the original sender in the Cc list.
static int INT_SHOW_GRAPHIC_EMOTICONS
          If this bit is set, emoticons like :-) are replaced with a little graphic
static int INT_SPAM_ENABLED
          If this bit is set, the spam feature is enabled
static int INT_TEXT_ONLY_COMPOSE
          If this bit is set, only plain text is allowed when composing reply/forward messages.
static int INT_USE_COLOR_QUOTE
          If this bit is set, the quote levels of a plain text message are colorized
static int MSG_FORMAT_BOTH
           
static int MSG_FORMAT_HTML_ONLY
           
static int MSG_FORMAT_TEXT_ONLY
           
static java.lang.String STD_CONFIRMED_HAM
           
static java.lang.String STD_CONFIRMED_SPAM
           
static java.lang.String STD_DRAFTS
           
static java.lang.String STD_SENT
           
static java.lang.String STD_SPAM
           
static java.lang.String STD_TRASH
           
 
Constructor Summary
UserSettingMail(int userId, int cid)
          Initializes a new UserSettingMail.
 
Method Summary
 java.lang.Object clone()
           
 int getAutoLinebreak()
          Gets the character count after which a line break is added in text/plain messages
 int getBitsValue()
          Generates a bit pattern from this settings
 int getCid()
          Gets the context ID.
 java.lang.String getConfirmedHam()
          Gets the name of the confirmed ham folder.
 java.lang.String getConfirmedSpam()
          Gets the name of the confirmed spam folder.
 java.lang.String[] getDisplayMsgHeaders()
          Define an array of message headers which shall be displayed for this user in mail's detail view.
 int getMsgFormat()
          Indicates the desired message format when preparing a message for transport.
 java.lang.String getReplyToAddr()
          The desired address that shall be set as Reply-To header when sending messages.
 java.lang.String getSendAddr()
          The default send address.
 UserSettingMail.Signature[] getSignatures()
          Gets the user-defined signatures that are either prepended or appended to a message's body.
 java.lang.String getStdDraftsName()
          Gets the name of the draft folder.
 java.lang.String getStdSentName()
          Gets the name of the sent folder.
 java.lang.String getStdSpamName()
          Gets the name of the spam folder.
 java.lang.String getStdTrashName()
          Gets the name of the trash folder.
 long getUploadQuota()
          Gets the overall upload quota limit when uploading several file attachments.
 long getUploadQuotaPerFile()
          Gets the upload quota limit per file when uploading several file attachments.
 int getUserId()
          Gets the user ID.
 boolean isAllowHTMLImages()
          Indicates if user allows to display images which appear in HTML content of a message.
 boolean isAppendVCard()
          Checks if user's VCard shall be attached to a message on transport
 boolean isDisplayHtmlInlineContent()
          Checks if user allows to display inline HTML content of a message.
 boolean isForwardAsAttachment()
          Checks if a forwarded message is supposed to be added as an attachment; otherwise it is added inline.
 boolean isHardDeleteMsgs()
          Checks if messages are supposed to be deleted permanently or backuped into trash folder.
 boolean isIgnoreOriginalMailTextOnReply()
          Checks if original message's content shall be ignored in reply version to the message
 boolean isModifiedDuringSession()
          Internal flag to track this mail setting's modified status.
 boolean isMsgPreview()
          Currently not used
 boolean isNoCopyIntoStandardSentFolder()
          Checks if a sent message shall be copied into sent folder
 boolean isNoSave()
          Checks if this instance of UserSettingMail is allowed to being saved to storage
 boolean isNotifyAppointments()
          Checks if the user will receive notification messages on appointment events (creation, deletion & change).
 boolean isNotifyAppointmentsConfirmOwner()
          Checks if the user will receive notification messages on appointment events (accept, decline & tentatively accepted) as the appointment's owner.
 boolean isNotifyAppointmentsConfirmParticipant()
          Checks if the user will receive notification messages on appointment events (accept, decline & tentatively accepted) as an appointment's participant.
 boolean isNotifyOnReadAck()
          Currently not used
 boolean isNotifyTasks()
          Checks if the user will receive notification messages on task events (creation, deletion & change).
 boolean isNotifyTasksConfirmOwner()
          Checks if the user will receive notification messages on task events (accept, decline & tentatively accepted) as the task's owner.
 boolean isNotifyTasksConfirmParticipant()
          Checks if the user will receive notification messages on task events (accept, decline & tentatively accepted) as a task's participant.
 boolean isReplyAllCc()
          Indicates if the reply-all method will put all recipients except the original sender in the Cc list.
 boolean isShowGraphicEmoticons()
          Indicates if user wants to see graphical emoticons rather than corresponding textual representation
 boolean isSpamEnabled()
          Checks if user has spam enabled.
 boolean isSpamOptionEnabled()
          Checks if user has spam enabled.
 boolean isTextOnlyCompose()
          Currently not used.
 boolean isUseColorQuote()
          Indicates if user wants to see reply quotes inside a message's content indented in a color dependent on quote level.
 void parseBits(int onOffOptions)
          Parses given bit pattern and applies it to this settings
 void setAllowHTMLImages(boolean allowHTMLImages)
           
 void setAppendVCard(boolean appendVCard)
           
 void setAutoLinebreak(int autoLineBreak)
           
 void setConfirmedHam(java.lang.String confirmedHam)
           
 void setConfirmedSpam(java.lang.String confirmedSpam)
           
 void setDisplayHtmlInlineContent(boolean htmlPreview)
           
 void setDisplayMsgHeaders(java.lang.String[] displayMsgHeaders)
           
 void setForwardAsAttachment(boolean forwardAsAttachment)
           
 void setHardDeleteMsgs(boolean hardDeleteMessages)
           
 void setIgnoreOriginalMailTextOnReply(boolean appendOriginalMailTextToReply)
           
 void setMsgFormat(int msgFormat)
           
 void setMsgPreview(boolean msgPreview)
           
 void setNoCopyIntoStandardSentFolder(boolean noCopyIntoStandardSentFolder)
           
 void setNoSave(boolean noSave)
          Sets the no-save attribute.
 void setNotifyAppointments(boolean notifyAppointments)
           
 void setNotifyAppointmentsConfirmOwner(boolean notifyAppointmentsConfirmOwner)
          Sets the notifyAppointmentsConfirmOwner
 void setNotifyAppointmentsConfirmParticipant(boolean notifyAppointmentsConfirmParticipant)
          Sets the notifyAppointmentsConfirmParticipant
 void setNotifyOnReadAck(boolean notifyOnReadAck)
           
 void setNotifyTasks(boolean notifyTasks)
           
 void setNotifyTasksConfirmOwner(boolean notifyTasksConfirmOwner)
          Sets the notifyTasksConfirmOwner
 void setNotifyTasksConfirmParticipant(boolean notifyTasksConfirmParticipant)
          Sets the notifyTasksConfirmParticipant
 void setReplyAllCc(boolean replyAllCc)
          Sets whether the reply-all method will put all recipients except the original sender in the Cc list.
 void setReplyToAddr(java.lang.String replyToAddr)
           
 void setSendAddr(java.lang.String sendAddr)
           
 void setShowGraphicEmoticons(boolean showGraphicEmoticons)
           
 void setSignatures(UserSettingMail.Signature[] signatures)
           
 void setSpamEnabled(boolean spamEnabled)
           
 void setStdDraftsName(java.lang.String stdDraftsName)
           
 void setStdSentName(java.lang.String stdSentName)
           
 void setStdSpamName(java.lang.String stdSpamName)
           
 void setStdTrashName(java.lang.String stdTrashName)
           
 void setTextOnlyCompose(boolean textOnlyCompose)
           
 void setUploadQuota(long uploadQuota)
           
 void setUploadQuotaPerFile(long uploadQuotaPerFile)
           
 void setUseColorQuote(boolean useColorQuote)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INT_DISPLAY_HTML_INLINE_CONTENT

public static final int INT_DISPLAY_HTML_INLINE_CONTENT
If this bit is set, html content is displayed on message display

See Also:
Constant Field Values

INT_USE_COLOR_QUOTE

public static final int INT_USE_COLOR_QUOTE
If this bit is set, the quote levels of a plain text message are colorized

See Also:
Constant Field Values

INT_SHOW_GRAPHIC_EMOTICONS

public static final int INT_SHOW_GRAPHIC_EMOTICONS
If this bit is set, emoticons like :-) are replaced with a little graphic

See Also:
Constant Field Values

INT_HARD_DELETE_MSGS

public static final int INT_HARD_DELETE_MSGS
If this bit is set, no copy of a deleted message is created in default "trash" folder. The message is hard deleted and no more present at all.

See Also:
Constant Field Values

INT_FORWARD_AS_ATTACHMENT

public static final int INT_FORWARD_AS_ATTACHMENT
If this bit is set, a forwarded message is appended as an message/rfc822 attachment instead of an inline forward

See Also:
Constant Field Values

INT_APPEND_VCARD

public static final int INT_APPEND_VCARD
If this bit is set, a VCard created from user's contact data is appended to a sent message

See Also:
Constant Field Values

INT_NOTIFY_ON_READ_ACK

public static final int INT_NOTIFY_ON_READ_ACK
If this bit is set, the user is notified if a message contains a read acknowledgment

See Also:
Constant Field Values

INT_MSG_PREVIEW

public static final int INT_MSG_PREVIEW
This constant is currently not in use

See Also:
Constant Field Values

INT_NOTIFY_APPOINTMENTS

public static final int INT_NOTIFY_APPOINTMENTS
If this bit is set, the user will receive notification messages on appointment events (creation, deletion & change)

See Also:
Constant Field Values

INT_NOTIFY_TASKS

public static final int INT_NOTIFY_TASKS
If this bit is set, the user will receive notification messages on task events (creation, deletion & change)

See Also:
Constant Field Values

INT_IGNORE_ORIGINAL_TEXT_ON_REPLY

public static final int INT_IGNORE_ORIGINAL_TEXT_ON_REPLY
If this bit is set, no message body text is extracted (and displayed) from the message to which the user replies

See Also:
Constant Field Values

INT_NO_COPY_INTO_SENT_FOLDER

public static final int INT_NO_COPY_INTO_SENT_FOLDER
If this bit is set, no copy of a sent mail is created in default "sent" folder

See Also:
Constant Field Values

INT_SPAM_ENABLED

public static final int INT_SPAM_ENABLED
If this bit is set, the spam feature is enabled

See Also:
Constant Field Values

INT_TEXT_ONLY_COMPOSE

public static final int INT_TEXT_ONLY_COMPOSE
If this bit is set, only plain text is allowed when composing reply/forward messages. The user will see the html2text converted content when replying to/inline-forwarding a html message.

See Also:
Constant Field Values

INT_ALLOW_HTML_IMAGES

public static final int INT_ALLOW_HTML_IMAGES
If this bit is set, it is allowed to display images which appear in HTML content of a message.

See Also:
Constant Field Values

INT_NOTIFY_APPOINTMENTS_CONFIRM_OWNER

public static final int INT_NOTIFY_APPOINTMENTS_CONFIRM_OWNER
If this bit is set, the user will receive notification messages on appointment events (accept, decline & tentatively accepted) as the appointment's owner.

See Also:
Constant Field Values

INT_NOTIFY_APPOINTMENTS_CONFIRM_PARTICIPANT

public static final int INT_NOTIFY_APPOINTMENTS_CONFIRM_PARTICIPANT
If this bit is set, the user will receive notification messages on appointment events (accept, decline & tentatively accepted) as an appointment's participant.

See Also:
Constant Field Values

INT_NOTIFY_TASKS_CONFIRM_OWNER

public static final int INT_NOTIFY_TASKS_CONFIRM_OWNER
If this bit is set, the user will receive notification messages on task events (accept, decline & tentatively accepted) as the task's owner.

See Also:
Constant Field Values

INT_NOTIFY_TASKS_CONFIRM_PARTICIPANT

public static final int INT_NOTIFY_TASKS_CONFIRM_PARTICIPANT
If this bit is set, the user will receive notification messages on task events (accept, decline & tentatively accepted) as a task's participant.

See Also:
Constant Field Values

INT_REPLY_ALL_CC

public static final int INT_REPLY_ALL_CC
If this bit is set, the reply-all method will put all recipients except the original sender in the Cc list.

See Also:
Constant Field Values

MSG_FORMAT_TEXT_ONLY

public static final int MSG_FORMAT_TEXT_ONLY
See Also:
Constant Field Values

MSG_FORMAT_HTML_ONLY

public static final int MSG_FORMAT_HTML_ONLY
See Also:
Constant Field Values

MSG_FORMAT_BOTH

public static final int MSG_FORMAT_BOTH
See Also:
Constant Field Values

STD_TRASH

public static final java.lang.String STD_TRASH
See Also:
Constant Field Values

STD_DRAFTS

public static final java.lang.String STD_DRAFTS
See Also:
Constant Field Values

STD_SENT

public static final java.lang.String STD_SENT
See Also:
Constant Field Values

STD_SPAM

public static final java.lang.String STD_SPAM
See Also:
Constant Field Values

STD_CONFIRMED_SPAM

public static final java.lang.String STD_CONFIRMED_SPAM
See Also:
Constant Field Values

STD_CONFIRMED_HAM

public static final java.lang.String STD_CONFIRMED_HAM
See Also:
Constant Field Values
Constructor Detail

UserSettingMail

public UserSettingMail(int userId,
                       int cid)
Initializes a new UserSettingMail.

Parameters:
userId - The user ID
cid - The context ID
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getAutoLinebreak

public int getAutoLinebreak()
Gets the character count after which a line break is added in text/plain messages

Returns:
The character count after which a line break is added

getBitsValue

public int getBitsValue()
Generates a bit pattern from this settings

Returns:
a bit pattern from this settings

getConfirmedHam

public java.lang.String getConfirmedHam()
Gets the name of the confirmed ham folder.

Note: This is only the name, not its fullname.

Returns:
The name of the confirmed ham folder

getConfirmedSpam

public java.lang.String getConfirmedSpam()
Gets the name of the confirmed spam folder.

Note: This is only the name, not its fullname.

Returns:
The name of the confirmed spam folder

getDisplayMsgHeaders

public java.lang.String[] getDisplayMsgHeaders()
Define an array of message headers which shall be displayed for this user in mail's detail view.

Returns:
An array of message headers which shall be displayed

getMsgFormat

public int getMsgFormat()
Indicates the desired message format when preparing a message for transport.

The returned int value is one of MSG_FORMAT_TEXT_ONLY, MSG_FORMAT_HTML_ONLY, and MSG_FORMAT_BOTH.

Returns:
The desired message format

getReplyToAddr

public java.lang.String getReplyToAddr()
The desired address that shall be set as Reply-To header when sending messages.

If returned value is null or empty, the message's From header is used as fallback.

Returns:
The desired Reply-To address

getSendAddr

public java.lang.String getSendAddr()
The default send address. This address is used to set the From header and the Sender header as well.

Returns:
The default send address

getSignatures

public UserSettingMail.Signature[] getSignatures()
Gets the user-defined signatures that are either prepended or appended to a message's body.

Returns:
The user-defined signatures

getStdDraftsName

public java.lang.String getStdDraftsName()
Gets the name of the draft folder.

Note: This is only the name, not its fullname.

Returns:
The name of the draft folder

getStdSentName

public java.lang.String getStdSentName()
Gets the name of the sent folder.

Note: This is only the name, not its fullname.

Returns:
The name of the sent folder

getStdSpamName

public java.lang.String getStdSpamName()
Gets the name of the spam folder.

Note: This is only the name, not its fullname.

Returns:
The name of the spam folder

getStdTrashName

public java.lang.String getStdTrashName()
Gets the name of the trash folder.

Note: This is only the name, not its fullname.

Returns:
The name of the trash folder

getUploadQuota

public long getUploadQuota()
Gets the overall upload quota limit when uploading several file attachments.

Returns:
The overall upload quota limit.

getUploadQuotaPerFile

public long getUploadQuotaPerFile()
Gets the upload quota limit per file when uploading several file attachments.

Returns:
The upload quota limit per file.

isAppendVCard

public boolean isAppendVCard()
Checks if user's VCard shall be attached to a message on transport

Returns:
true if user's VCard shall be attached to a message on transport; otherwise false

isDisplayHtmlInlineContent

public boolean isDisplayHtmlInlineContent()
Checks if user allows to display inline HTML content of a message.

Returns:
true if user allows to display inline HTML content of a message; otherwise false

isForwardAsAttachment

public boolean isForwardAsAttachment()
Checks if a forwarded message is supposed to be added as an attachment; otherwise it is added inline.

Returns:
true if a forwarded message is supposed to be added as an attachment; otherwise false if it is added inline.

isHardDeleteMsgs

public boolean isHardDeleteMsgs()
Checks if messages are supposed to be deleted permanently or backuped into trash folder.

Returns:
true if messages are supposed to be deleted permanently; otherwise false to backup in trash folder

isIgnoreOriginalMailTextOnReply

public boolean isIgnoreOriginalMailTextOnReply()
Checks if original message's content shall be ignored in reply version to the message

Returns:
true if original message's content shall be ignored; otherwise false to include.

isModifiedDuringSession

public boolean isModifiedDuringSession()
Internal flag to track this mail setting's modified status.

Returns:
true if modified during session (and to force a reload); otherwise false

isMsgPreview

public boolean isMsgPreview()
Currently not used


isNoCopyIntoStandardSentFolder

public boolean isNoCopyIntoStandardSentFolder()
Checks if a sent message shall be copied into sent folder

Returns:
true if a sent message shall be copied into sent folder; otherwise false

isNotifyAppointments

public boolean isNotifyAppointments()
Checks if the user will receive notification messages on appointment events (creation, deletion & change).

Returns:
true if the user will receive notification messages on appointment events (creation, deletion & change); otherwise false

isNotifyAppointmentsConfirmOwner

public boolean isNotifyAppointmentsConfirmOwner()
Checks if the user will receive notification messages on appointment events (accept, decline & tentatively accepted) as the appointment's owner.

Returns:
true if the user will receive notification messages on appointment events (accept, decline & tentatively accepted) as the appointment's owner; otherwise false.

isNotifyAppointmentsConfirmParticipant

public boolean isNotifyAppointmentsConfirmParticipant()
Checks if the user will receive notification messages on appointment events (accept, decline & tentatively accepted) as an appointment's participant.

Returns:
true if the user will receive notification messages on appointment events (accept, decline & tentatively accepted) as an appointment's participant; otherwise false.

isNotifyTasksConfirmOwner

public boolean isNotifyTasksConfirmOwner()
Checks if the user will receive notification messages on task events (accept, decline & tentatively accepted) as the task's owner.

Returns:
true if the user will receive notification messages on task events (accept, decline & tentatively accepted) as the task's owner; otherwise false.

isNotifyTasksConfirmParticipant

public boolean isNotifyTasksConfirmParticipant()
Checks if the user will receive notification messages on task events (accept, decline & tentatively accepted) as a task's participant.

Returns:
true if the user will receive notification messages on task events (accept, decline & tentatively accepted) as a task's participant; otherwise false.

isNotifyOnReadAck

public boolean isNotifyOnReadAck()
Currently not used


isNotifyTasks

public boolean isNotifyTasks()
Checks if the user will receive notification messages on task events (creation, deletion & change).

Returns:
true if the user will receive notification messages on task events (creation, deletion & change); otherwise false

isShowGraphicEmoticons

public boolean isShowGraphicEmoticons()
Indicates if user wants to see graphical emoticons rather than corresponding textual representation

Returns:
true if user wants to see graphical emoticons rather than corresponding textual representation; otherwise false

isSpamEnabled

public boolean isSpamEnabled()
Checks if user has spam enabled. Spam is enabled if both an appropriate spam handler is defined by user's mail provider AND its mail settings enable spam.

Returns:
true if user has spam enabled; otherwise false

isSpamOptionEnabled

public boolean isSpamOptionEnabled()
Checks if user has spam enabled.

Note: This method does not check if an appropriate spam handler is defined by user's mail provider. To reliably check full spam support call isSpamEnabled().

Returns:
true if user has spam enabled; otherwise false

isTextOnlyCompose

public boolean isTextOnlyCompose()
Currently not used.


isAllowHTMLImages

public boolean isAllowHTMLImages()
Indicates if user allows to display images which appear in HTML content of a message.

Returns:
true if user allows to display images; otherwise false

isReplyAllCc

public boolean isReplyAllCc()
Indicates if the reply-all method will put all recipients except the original sender in the Cc list. Normally, recipients in the To header of the original message will also appear in the To list.

Returns:
true if the reply-all method will put all recipients except the original sender in the Cc list; otherwise false.

isUseColorQuote

public boolean isUseColorQuote()
Indicates if user wants to see reply quotes inside a message's content indented in a color dependent on quote level.

Returns:
true to indent in color; otherwise false

isNoSave

public boolean isNoSave()
Checks if this instance of UserSettingMail is allowed to being saved to storage

Returns:
true if this instance of UserSettingMail is allowed to being saved to storage; otherwise false

parseBits

public void parseBits(int onOffOptions)
Parses given bit pattern and applies it to this settings

Parameters:
onOffOptions - The bit pattern

setAppendVCard

public void setAppendVCard(boolean appendVCard)

setAutoLinebreak

public void setAutoLinebreak(int autoLineBreak)

setConfirmedHam

public void setConfirmedHam(java.lang.String confirmedHam)

setConfirmedSpam

public void setConfirmedSpam(java.lang.String confirmedSpam)

setDisplayHtmlInlineContent

public void setDisplayHtmlInlineContent(boolean htmlPreview)

setDisplayMsgHeaders

public void setDisplayMsgHeaders(java.lang.String[] displayMsgHeaders)

setForwardAsAttachment

public void setForwardAsAttachment(boolean forwardAsAttachment)

setHardDeleteMsgs

public void setHardDeleteMsgs(boolean hardDeleteMessages)

setIgnoreOriginalMailTextOnReply

public void setIgnoreOriginalMailTextOnReply(boolean appendOriginalMailTextToReply)

setMsgFormat

public void setMsgFormat(int msgFormat)

setMsgPreview

public void setMsgPreview(boolean msgPreview)

setNoCopyIntoStandardSentFolder

public void setNoCopyIntoStandardSentFolder(boolean noCopyIntoStandardSentFolder)

setNotifyAppointments

public void setNotifyAppointments(boolean notifyAppointments)

setNotifyOnReadAck

public void setNotifyOnReadAck(boolean notifyOnReadAck)

setNotifyTasks

public void setNotifyTasks(boolean notifyTasks)

setReplyToAddr

public void setReplyToAddr(java.lang.String replyToAddr)

setSendAddr

public void setSendAddr(java.lang.String sendAddr)

setShowGraphicEmoticons

public void setShowGraphicEmoticons(boolean showGraphicEmoticons)

setSignatures

public void setSignatures(UserSettingMail.Signature[] signatures)

setSpamEnabled

public void setSpamEnabled(boolean spamEnabled)

setStdDraftsName

public void setStdDraftsName(java.lang.String stdDraftsName)

setStdSentName

public void setStdSentName(java.lang.String stdSentName)

setStdSpamName

public void setStdSpamName(java.lang.String stdSpamName)

setStdTrashName

public void setStdTrashName(java.lang.String stdTrashName)

setTextOnlyCompose

public void setTextOnlyCompose(boolean textOnlyCompose)

setAllowHTMLImages

public void setAllowHTMLImages(boolean allowHTMLImages)

setReplyAllCc

public void setReplyAllCc(boolean replyAllCc)
Sets whether the reply-all method will put all recipients except the original sender in the Cc list. Normally, recipients in the To header of the original message will also appear in the To list.

Parameters:
replyAllCc - true if the reply-all method will put all recipients except the original sender in the Cc list; otherwise false.

setUploadQuota

public void setUploadQuota(long uploadQuota)

setUploadQuotaPerFile

public void setUploadQuotaPerFile(long uploadQuotaPerFile)

setUseColorQuote

public void setUseColorQuote(boolean useColorQuote)

setNotifyAppointmentsConfirmOwner

public void setNotifyAppointmentsConfirmOwner(boolean notifyAppointmentsConfirmOwner)
Sets the notifyAppointmentsConfirmOwner

Parameters:
notifyAppointmentsConfirmOwner - the notifyAppointmentsConfirmOwner to set

setNotifyAppointmentsConfirmParticipant

public void setNotifyAppointmentsConfirmParticipant(boolean notifyAppointmentsConfirmParticipant)
Sets the notifyAppointmentsConfirmParticipant

Parameters:
notifyAppointmentsConfirmParticipant - the notifyAppointmentsConfirmParticipant to set

setNotifyTasksConfirmOwner

public void setNotifyTasksConfirmOwner(boolean notifyTasksConfirmOwner)
Sets the notifyTasksConfirmOwner

Parameters:
notifyTasksConfirmOwner - the notifyTasksConfirmOwner to set

setNotifyTasksConfirmParticipant

public void setNotifyTasksConfirmParticipant(boolean notifyTasksConfirmParticipant)
Sets the notifyTasksConfirmParticipant

Parameters:
notifyTasksConfirmParticipant - the notifyTasksConfirmParticipant to set

setNoSave

public void setNoSave(boolean noSave)
Sets the no-save attribute. If set to true this instance of UserSettingMail cannot be saved to storage.

Parameters:
noSave - true to deny saving this instance of UserSettingMail to storage; otherwise false

getUserId

public int getUserId()
Gets the user ID.

Returns:
The user ID

getCid

public int getCid()
Gets the context ID.

Returns:
The context ID