/src/compose.php

Description

compose.php

This code sends a mail.

There are 4 modes of operation:

  • Start new mail
  • Add an attachment
  • Send mail
  • Save As Draft

Includes
include_once ('./addrbook_search_html.php') (line 574)

Rewrap $body so that no line is bigger than $editor_size This should only really kick in the sqWordWrap function if the browser doesn't support "VIRTUAL" as the wrap type.

require_once (SM_PATH.'functions/identity.php') (line 40)
require_once (SM_PATH.'include/validate.php') (line 30)
require_once (SM_PATH.'functions/addressbook.php') (line 38)
require_once (SM_PATH.'functions/mime.php') (line 34)
require_once (SM_PATH.'functions/imap.php') (line 32)
require_once (SM_PATH.'functions/date.php') (line 33)
require_once (SM_PATH.'functions/global.php') (line 31)
require_once (SM_PATH.'functions/forms.php') (line 39)
require_once (SM_PATH.'functions/plugin.php') (line 35)
Functions
checkInput (line 1513)
void checkInput ( $show)
  • $show
deliverMessage (line 1612)

temporary function to make use of the deliver class.

In the future the responsible backend should be automaticly loaded and conf.pl should show a list of available backends. The message also should be constructed by the message class.

  • return: FALSE if delivery failed, or some non-FALSE value upon success.
boolean deliverMessage ( &$composeMessage, [ $draft = false], object $composeMessage)
  • object $composeMessage: The message being sent. Please note that it is passed by reference and will be returned modified, with additional headers, such as Message-ID, Date, In-Reply-To, References, and so forth.
  • &$composeMessage
  • $draft
getAttachments (line 1017)
void getAttachments ( $message,  &$composeMessage,  $passed_id,  $entities,  $imapConnection)
  • $message
  • &$composeMessage
  • $passed_id
  • $entities
  • $imapConnection
getByteSize (line 1566)
void getByteSize ( $ini_size)
  • $ini_size
getforwardHeader (line 255)
void getforwardHeader ( $orig_header)
  • $orig_header
getMessage_RFC822_Attachment (line 1077)
void getMessage_RFC822_Attachment ( $message,  $composeMessage,  $passed_id, [ $passed_ent_id = ''],  $imapConnection)
  • $message
  • $composeMessage
  • $passed_id
  • $passed_ent_id
  • $imapConnection
getReplyCitation (line 195)
void getReplyCitation ( $orig_from,  $orig_date)
  • $orig_from
  • $orig_date
newMail (line 691)

************** Only function definitions go below ************

void newMail ([ $mailbox = ''], [ $passed_id = ''], [ $passed_ent_id = ''], [ $action = ''], [ $session = ''])
  • $mailbox
  • $passed_id
  • $passed_ent_id
  • $action
  • $session
replyAllString (line 150)

Here we decode the data passed in from mailto.php.

void replyAllString ( $header)
  • $header
saveAttachedFiles (line 1536)
void saveAttachedFiles ( $session)
  • $session
showComposeButtonRow (line 1455)
void showComposeButtonRow ()
showInputForm (line 1110)
void showInputForm ( $session, [ $values = false])
  • $session
  • $values

Documentation generated on Wed, 26 Nov 2014 04:20:28 +0100 by phpDocumentor 1.4.3