IMP_ComposeThe IMP_Compose:: class contains functions related to generating outgoing mail messages.
$Horde: imp/lib/Compose.php,v 1.107.2.89 2009/11/05 10:30:54 jan Exp $
Copyright 2002-2009 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
Located in /lib/Compose.php (line 30)
boolean
buildAndSendMessage
(string $message, array $header, string $charset, boolean $html, [array $opts = array()])
MIME_Part
getMessageBody
(string $message, string $charset, boolean $html, [string $final_msg = true])
array
replyMessage
(string $actionID, &$imp_contents, [string $to = null], IMP_Contents $imp_contents)
integer
$_atcid
= 0 (line 101)
Internal ID for attachments.
boolean
$_attachVCard
= false (line 73)
Whether the user's vCard should be attached to outgoing messages.
string
$_bodyCharset
(line 51)
The "cached" charset of the body MIME part.
array
$_cache
= array() (line 37)
The cached attachment data.
string
$_cacheid
(line 108)
The cache ID used to store object in session.
integer
$_draftIdx
(line 87)
The UID of the last draft saved via saveDraft().
boolean
$_findhtml
= false (line 94)
In findBody(), indicate we want to return a text/html part.
boolean
$_linkAttach
= false (line 80)
Whether attachments should be linked.
string
$_mimeid
= null (line 44)
For findBody, the MIME ID of the "body" part.
boolean
$_pgpAttachPubkey
= false (line 66)
Whether the user's PGP public key should be attached to outgoing messages.
boolean
$_resume
= false (line 115)
Are we resuming a message?
integer
$_size
= 0 (line 58)
The aggregate size of all attachments (in bytes).
addFilesFromUpload (line 2947)
Add uploaded files from form data.
additionalAttachmentsAllowed (line 2457)
How many more attachments are allowed?
addMIMEPartAttachment (line 2097)
Adds an attachment to a MIME_Part from data existing in the part.
addUploadAttachment (line 2027)
Adds an attachment to a MIME_Part from an uploaded file.
The actual attachment data is stored in a separate file - the MIME_Part information entries 'temp_filename' and 'temp_filetype' are set with this information.
attachFilesFromMessage (line 2497)
Adds attachments from the IMP_Contents object to the message.
attachIMAPMessage (line 1901)
Add mail message(s) from the mail server as a message/rfc822 attachment.
attachVCard (line 2906)
Attach the user's vCard to every message sent by buildAndSendMessage().
buildAndSendMessage (line 601)
Builds and sends a MIME message.
'save_sent' = (bool) Save sent mail?
'sent_folder' = (string) The sent-mail folder.
'save_attachments' = (bool) Save attachments with the message?
'reply_type' = (string) What kind of reply this is (reply or forward).
'reply_index' = (string) The IMAP message mailbox/index of the message
we are replying to. The index should be in
IMP::parseIndicesList() format #1.
'encrypt' => (integer) A flag whether to encrypt or sign the message.
One of IMP_PGP_ENCRYPT, IMP_PGP_SIGNENC,
IMP_SMIME_ENCRYPT, or IMP_SMIME_SIGNENC.
'priority' => (integer) The message priority from 1 to 5.
'readreceipt' => (bool) Add return receipt headers?
'useragent' => (string) The User-Agent string to use.
buildAttachment (line 2311)
Build a single attachment part with its data.
convertToMultipartRelated (line 2531)
Convert a text/html MIME_Part message with embedded image links to a multipart/related MIME_Part with the image data embedded in the part.
deleteAllAttachments (line 2253)
Deletes all attachments.
deleteAttachment (line 2210)
Delete attached files.
expandAddresses (line 2697)
Uses the Registry to expand names and return error information for any address that is either not valid or fails to expand.
This method can be called statically, i.e.: $ret = IMP_Compose::expandAddresses()
findBody (line 1484)
Finds the main "body" text part (if any) in a message.
formatAddr (line 400)
Formats the address properly.
Can be called statically.
forwardMessage (line 1790)
Determine the text and headers for a forwarded message.
getAttachments (line 2279)
Returns the list of current attachments.
getBodyCharset (line 1588)
Returns the charset of the MIME part containing the "body".
getBodyId (line 1573)
Returns the ID of the MIME part containing the "body".
getHTMLBody (line 1529)
Returns the HTML body text of a message.
The HTML code is passed through the XSS filter and any tags outside and including the body and html tags are removed.
getMessageBody (line 425)
Gets the message body and sets up the MIME parts.
getMessageCacheId (line 2445)
Obtains the cache ID for the session object.
linkAttachments (line 2624)
Remove all attachments from an email message and replace with urls to downloadable links. Should properly save all attachments to a new folder and remove the MIME_Parts for the attachments.
maxAttachmentSize (line 2473)
What is the maximum attachment size allowed?
numberOfAttachments (line 2289)
Returns the number of attachments currently in this message.
pgpAttachPubkey (line 2893)
Attach the user's PGP public key to every message sent by buildAndSendMessage().
recipientList (line 1187)
Cleans up and returns the recipient list. Encodes all e-mail addresses with IDN domains.
replyMessage (line 1614)
Determines the reply text and headers for a message.
resumeDraft (line 297)
Resumes a previously saved draft message.
rfc822WriteGroupAddress (line 1305)
Write an RFC822 group, given the group name and a list of valid, mailbox+host-only email addresses.
saveDraft (line 183)
Saves a message to the draft folder.
saveDraftIndex (line 278)
Returns the UID of the last message saved via saveDraft().
sendMessage (line 893)
Sends a message.
singleton (line 131)
Attempts to return a reference to a concrete IMP_Compose instance.
If a IMP_Cacheid object exists with the given cacheid, recreate that that object. Else, create a new instance.
This method must be invoked as:
$imp_compose = &IMP_Compose::singleton([$cacheid]);
sizeOfAttachments (line 2299)
Returns the size of the attachments in bytes.
text2html (line 3001)
Shortcut function to convert text -> HTML for purposes of composition.
updateAttachment (line 2268)
Updates information in a specific attachment.
'disposition' -- The Content-Disposition value. 'description' -- The Content-Description value.
userLinkAttachments (line 2929)
Has user specifically asked attachments to be linked in outgoing messages?
_addReferences (line 869)
Add necessary headers for replies.
Documentation generated on Sun, 30 Jan 2011 05:28:10 +0000 by phpDocumentor 1.4.3