MessageThe object that contains a message.
message is the object that contains messages. It is a recursive object in that through the $entities variable, it can contain more objects of type message. See documentation in mime.txt for a better description of how this works.
Located in /nasmail/class/mime/Message.class.php (line 31)
array
findDisplayEntity
([array $entity = array()], [array $alt_order = array('text/plain', 'text/html')], [boolean $strict = false])
string
$att_local_name
= '' (line 132)
Local attachment filename location where the tempory attachment is stored. For use in delivery class.
string
$body_part
= '' (line 114)
Message text body
string
$decoded_body
= '' (line 84)
array
$entities
= array() (line 60)
Nested mime parts
mixed
$entity
(line 74)
string
$entity_id
= '' (line 65)
Message part id
mixed
$flags
= '' (line 45)
object MessageHeader
$header
(line 137)
Message information from IMAP BODYSTRUCTURE
boolean
$is_answered
= 0 (line 94)
Message \answered status
boolean
$is_deleted
= 0 (line 99)
Message \deleted status
boolean
$is_flagged
= 0 (line 104)
Message \flagged status
boolean
$is_mdnsent
= 0 (line 109)
Message mdn status
boolean
$is_seen
= 0 (line 89)
Message \seen status
integer
$length
= 0 (line 126)
Message part length
for fetching body parts out of raw messages
object MessageHeader
$mime_header
= '' (line 41)
MessageHeader object
integer
$offset
= 0 (line 120)
Message part offset
for fetching body parts out of raw messages
string
$parent_ent
(line 70)
Parent message part id
object Rfc822Header
$rfc822_header
= '' (line 36)
rfc822header object
string
$type0
= '' (line 50)
Media type
string
$type1
= '' (line 55)
Media subtype
addRFC822Header (line 202)
Add header object to message object.
WARNING: Unfinished code. Don't expect it to work in older sm versions.
clean_up (line 264)
Clean message object
findAlternativeEntity (line 1004)
findDisplayEntity (line 927)
findRelatedEntity (line 1030)
getAttachments (line 1050)
getFilename (line 158)
Get file name used for mime part
getMailbox (line 276)
initAttachment (line 1095)
Add attachment to message object
parseAddress (line 741)
parseBodyStructure (line 347)
parseDisposition (line 780)
parseEnvelope (line 558)
parseLanguage (line 805)
parseLiteral (line 648)
parseMessage (line 854)
Function to fill the message structure in case the
bodystructure is not available NOT FINISHED YET
parseParenthesis (line 833)
Parse message text enclosed in parenthesis
parseProperties (line 527)
parseQuote (line 684)
function parseQuote
This extract the string value from a quoted string. After the end-quote character is found it returns the string. The offset $i when calling this function points to the first double quote. At the end it points to The ending quote. This function takes care of escaped double quotes. "some \"string\"" ^ ^ initial $i end position $i
parseStructure (line 299)
Bodystructure parser, a recursive function for generating the entity-tree with all the mime-parts.
It follows RFC2060 and stores all the described fields in the message object.
Question/Bugs:
Ask for me (Marc Groot Koerkamp, stekkel@users.sourceforge.net)
purgeAttachments (line 1117)
Delete all attachments from this object from disk.
setBody (line 257)
Set message body
setEnt (line 142)
setEntIds (line 311)
Documentation generated on Sun, 22 Nov 2009 17:36:42 +0200 by phpDocumentor 1.4.3