Package osaf :: Package mail :: Module message
[hide private]
[frames] | no frames]

Module message

source code

Classes [hide private]
  MIMEBase64Encode
Functions [hide private]
 
decodeHeader(header, charset='utf-8') source code
 
getUnicodeValue(val, charset='utf-8', ignore=True) source code
 
createChandlerHeader(postfix)
Creates a chandler header with postfix provided.
source code
 
populateStaticHeaders(messageObject)
Populates the static mail headers.
source code
 
populateHeader(messageObject, param, var, hType='String', encode=True) source code
 
populateHeaders(mailMessage, messageObject) source code
 
populateEmailAddresses(mailMessage, messageObject) source code
 
populateEmailAddressList(emailAddressList, messageObject, key, append=True) source code
 
messageTextToKind(view, messageText)
This method converts a email message string to a Chandler MailMessage object
source code
 
getPeer(view, messageObject) source code
 
messageObjectToKind(view, messageObject, messageText=<Locale: en_US>)
This method converts a email message string to a Chandler MailMessage object
source code
 
parseEIMML(view, peer, matchingAddresses, eimml) source code
 
parseICS(view, ics, messageObject=<Locale: en_US>) source code
 
buildBody(bodyBuffer) source code
 
buildICSInfo(mailStamp, icsSummary, icsDesc) source code
 
previewQuickConvert(view, headers, body, eimml, ics) source code
 
previewQuickParse(msg, isObject=True) source code
 
getChandlerAttachments(messageObject) source code
 
kindToMessageObject(mailStamp)
This method converts an item stamped as MailStamp to an email message string a Chandler MailMessage object
source code
 
kindToMessageText(mailStamp, saveMessage=True)
This method converts a email message string to a Chandler MailMessage object
source code
 
removeCarriageReturn(text) source code
 
addCarriageReturn(text) source code
 
getPeers(mailStamp) source code
 
parseEventInfo(mailStamp) source code
 
_parseEventInfoForLocale(mailStamp, locale=<Locale: en_US>) source code
 
parseTaskInfo(mailStamp) source code
 
__parseHeaders(view, messageObject, m, decode, makeUnicode) source code
 
__assignToKind(view, kindVar, messageObject, key, hType, attr, decode, makeUnicode) source code
 
__parsePart(view, mimePart, parentMIMEContainer, bodyBuffer, counter, buf, level=0) source code
 
__handleMessage(view, mimePart, parentMIMEContainer, bodyBuffer, counter, buf, level) source code
 
__handleMultipart(view, mimePart, parentMIMEContainer, bodyBuffer, counter, buf, level) source code
 
__handleBinary(view, mimePart, parentMIMEContainer, counter, buf, level) source code
 
__handleText(view, mimePart, parentMIMEContainer, bodyBuffer, counter, buf, level) source code
 
__getFileName(mimePart, counter) source code
 
__checkForDefects(mimePart) source code
 
__appendHeader(mimePart, buf, header) source code
 
verbose() source code
 
__trace(contype, buf, level) source code
Variables [hide private]
  OUTBOUND_FILTERS = Filter(None, u'Temporary filter')
Function Details [hide private]

messageTextToKind(view, messageText)

source code 
This method converts a email message string to a Chandler MailMessage object
Parameters:
  • messageText (string) - A string representation of a mail message
Returns:
MailMessage

messageObjectToKind(view, messageObject, messageText=<Locale: en_US>)

source code 
This method converts a email message string to a Chandler MailMessage object
Parameters:
  • messageObject (email.Message) - A email.Message object representation of a mail message
Returns:
MailMessage

kindToMessageObject(mailStamp)

source code 
This method converts an item stamped as MailStamp to an email message string a Chandler MailMessage object
Parameters:
  • mailMessage (MailMessage) - A Chandler MailMessage
Returns:
Message.Message

kindToMessageText(mailStamp, saveMessage=True)

source code 
This method converts a email message string to a Chandler MailMessage object
Parameters:
  • mailMessage (email.Message) - A email.Message object representation of a mail message
  • saveMessage (Boolean) - save the message text converted from the email.Message in the mailMessage.rfc2822Message attribute
Returns:
str