/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

require ('../include/init.php') (line 22)

Include the SquirrelMail initialization file.

require_once (SM_PATH.'functions/mime.php') (line 28)
require_once (SM_PATH.'functions/date.php') (line 27)
require_once (SM_PATH.'functions/identity.php') (line 32)
require_once (SM_PATH.'functions/addressbook.php') (line 30)
require_once (SM_PATH.'functions/forms.php') (line 31)
Functions
checkInput (line 1334)
void checkInput ( $show)
  • $show
deliverMessage (line 1423)

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.

void deliverMessage ( $composeMessage, [ $draft = false])
  • $composeMessage
  • $draft
getAttachments (line 948)

downloads attachments from original message, stores them in attachment directory and adds them to composed message.

object getAttachments (object $message,  &$composeMessage, integer $passed_id, mixed $entities, mixed $imapConnection, object $composeMessage)
  • object $message
  • object $composeMessage
  • integer $passed_id
  • mixed $entities
  • mixed $imapConnection
  • &$composeMessage
getByteSize (line 1387)
void getByteSize ( $ini_size)
  • $ini_size
getforwardHeader (line 239)

Creates header fields in forwarded email body

$default_charset global must be set correctly before you call this function.

$string getforwardHeader (object $orig_header)
  • object $orig_header
getforwardSubject (line 669)

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

void getforwardSubject ( $subject)
  • $subject
getMessage_RFC822_Attachment (line 1002)
void getMessage_RFC822_Attachment ( $message,  $composeMessage,  $passed_id, [ $passed_ent_id = ''],  $imapConnection)
  • $message
  • $composeMessage
  • $passed_id
  • $passed_ent_id
  • $imapConnection
getReplyCitation (line 174)

creates top line in reply citations

Line style depends on user preferences. $orig_date argument is available only from 1.4.3 and 1.5.1 version.

  • return: reply citation
string getReplyCitation (object $orig_from, integer $orig_date)
  • object $orig_from: From: header object.
  • integer $orig_date: email's timestamp
newMail (line 680)
void newMail ([ $mailbox = ''], [ $passed_id = ''], [ $passed_ent_id = ''], [ $action = ''], [ $session = ''])
  • $mailbox
  • $passed_id
  • $passed_ent_id
  • $action
  • $session
replyAllString (line 120)

get smaction

void replyAllString ( $header)
  • $header
saveAttachedFiles (line 1354)
void saveAttachedFiles ( $session)
  • $session
showComposeButtonRow (line 1289)
void showComposeButtonRow ()
showInputForm (line 1035)
void showInputForm ( $session, [ $values = false])
  • $session
  • $values

Documentation generated on Sat, 07 Oct 2006 16:09:16 +0300 by phpDocumentor 1.3.0RC6