Class ZmMailMsg
Class Detail
ZmMailMsg(id, list, noCache)
Method Detail
addAddress(addr, type)
Adds the given address to the vector of addresses of the given type
addAddresses(type, addrs)
Adds the given vector of addresses to the vector of addresses of the given type
addAttachmentId(id)
Sets the ID of any attachments which have already been uploaded.
addInlineAttachmentId(cid, aid, part, ismsg)
Adds an inline attachment.
addInlineDocAttachment(cid, docId, docpath, part)
Adds an inline document attachment.
<static>
ZmMailMsg.addRequestHeaders(req)
Adds optional headers to the given request.
clearAddresses()
Clears out all the address vectors.
<static>
{ZmMailMsg}
ZmMailMsg.createFromDom(node, args, noCache)
Fills in the message from the given message node. Whatever attributes and child nodes
are available will be used. The message node is not always fully populated, since it
may have been created as part of getting a conversation.
detachedChangeListener(ev)
from a child window - since we clone the message, the cloned message needs to listen to changes on the original (parent window) message.
fetchAlternativePart(contentType, callback)
Fetches the requested alternative part and adds it to our MIME structure, and body parts.
<static>
ZmMailMsg.fetchMsg(params)
Fetches a message from the server.
{Object}
findInlineAtt(cid)
Finds the attachment in this message for the given CID.
{String}
getAddress(type)
Gets the first address in the vector of addresses of the given type.
{AjxVector}
getAddresses(type, used, addAsContact, dontUpdateUsed)
Gets a vector of addresses of the given type.
getAttachmentCount(includeInlineAtts)
Returns the number of attachments in this msg.
getAttachmentInfo(findHits, includeInlineImages, includeInlineAtts)
Returns an array of objects containing meta info about attachments
{string}
getBodyContent(contentType, useOriginal)
Gets the content of the first body part of the given content type (if provided).
If HTML is requested, may return content set via setHtmlContent().
{ZmMimePart}
getBodyPart(contentType, callback)
Returns the first body part, of the given type if provided. May invoke a
server call if it needs to fetch an alternative part.
getBodyParts(contentType)
Returns the list of body parts.
{String}
getFragment(maxLen)
Gets the fragment. If maxLen is given, will truncate fragment to maxLen and add ellipsis.
{String}
getHeaderStr(hdr, htmlMode)
Gets the header string.
{Array}
getInlineAttachments()
Gets the inline attachments.
{Array}
getInlineDocAttachments()
Gets the inline document attachments.
{String}
getInviteDescriptionContent(contentType)
Gets the invite description content.
{String}
getInviteDescriptionContentValue(contentType)
Gets the invite description content value.
{String}
getListIdHeader()
Return list header id if it exists, otherwise returns null
{String}
getMimeHeader(name)
Return mime header id if it exists, otherwise returns null
{String}
getMsgSender()
If message is sent on behalf of returns sender address otherwise returns from address
getPtst()
returns this user's reply to this invite.
{AjxVector}
getReplyAddresses(mode, aliases, isDefaultIdentity)
Gets a Reply-To address if there is one, otherwise the From address
unless this message was sent by the user, in which case, it is the To
field (but only in the case of Reply All). A list is returned, since
theoretically From and Reply To can have multiple addresses.
{String}
getStatusIcon()
Gets the status icon.
{String}
getStatusTooltip()
Gets the status tool tip.
{ZmMimePart}
getTextBodyPart()
Returns a text/plain or text-like (not HTML or calendar) body part
<static>
{string}
ZmMailMsg.getTextFromCalendarPart(bodyPart)
Extracts and returns the text content out of a text/calendar part.
{string}
getUrlForPart(bodyPart)
Returns a URL that can be used to fetch the given part of this message.
{AjxEmailAddress}
getXZimbraDLHeader()
Return the zimbra DL header if it exists, otherwise return null
hasContentType(contentType)
Returns true if this msg has loaded a part with the given content type.
{boolean}
hasInlineImage()
Returns true if this message has an inline image
{boolean}
hasMultipleBodyParts()
Returns true is the msg has more than one body part. The server marks parts that
it considers to be body parts.
{Boolean}
isHtmlMail()
Checks if this message has html parts.
{Boolean}
isReadOnly()
Checks if the message is read only.
load(params)
Gets the full message object from the back end based on the current message ID, and
fills in the message.
send(isDraft, callback, errorCallback, accountName, noSave, requestReadReceipt, batchCmd, sendTime, isAutoSave)
Sends the message.
sendReadReceipt(callback)
Sends a read receipt.
setAddress(type, addr)
Sets the vector of addresses of the given type to the address given.
setAddresses(type, addrs)
Sets the vector of addresses of the given type to the given vector of addresses
setBodyParts(parts)
Sets the body parts.
setContactAttIds(ids)
Sets the ID of the contacts that are to be attached as vCards
setDocumentAttachments(ids)
Sets the IDs of docs to attach
setForwardAttIds(ids)
Sets the list of attachment (message part) IDs to be forwarded
setForwardAttObjs(objs)
Sets the list of attachments details(message id and message part) to be forwarded
setHtmlContent(content)
Sets the html content, overriding that of any HTML body part.
setInviteDescriptionContent(contentType, content)
Sets the invite description.
setMessageAttachmentId(ids)
Sets the IDs of messages to attach (as a forward)
setSubject(subject)
Sets the subject
setTopPart(part)
Sets the message's top part to the given MIME part
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:36 GMT-0400 (EDT)
|