/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 600)

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 1559)
void checkInput ( $show)
  • $show
deliverMessage (line 1658)

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 1062)
void getAttachments ( $message,  &$composeMessage,  $passed_id,  $entities,  $imapConnection)
  • $message
  • &$composeMessage
  • $passed_id
  • $entities
  • $imapConnection
getByteSize (line 1612)
void getByteSize ( $ini_size)
  • $ini_size
getforwardHeader (line 261)
void getforwardHeader ( $orig_header)
  • $orig_header
getMessage_RFC822_Attachment (line 1122)
void getMessage_RFC822_Attachment ( $message,  $composeMessage,  $passed_id, [ $passed_ent_id = ''],  $imapConnection)
  • $message
  • $composeMessage
  • $passed_id
  • $passed_ent_id
  • $imapConnection
getReplyCitation (line 201)
void getReplyCitation ( $orig_from,  $orig_date)
  • $orig_from
  • $orig_date
newMail (line 723)

************** 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 152)

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

void replyAllString ( $header)
  • $header
saveAttachedFiles (line 1582)
void saveAttachedFiles ( $session)
  • $session
showComposeButtonRow (line 1501)
void showComposeButtonRow ()
showInputForm (line 1155)
void showInputForm ( $session, [ $values = false])
  • $session
  • $values

Documentation generated on Mon, 13 Jan 2020 04:24:17 +0100 by phpDocumentor 1.4.3