squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

read_body.php File Reference

Go to the source code of this file.

Namespaces

 squirrelmail
 

Functions

 findNextMessage ($passed_id)
 
 findPreviousMessage ($numMessages, $passed_id)
 
 printer_friendly_link ($mailbox, $passed_id, $passed_ent_id, $color)
 
 ServerMDNSupport ($read)
 
 SendMDN ( $mailbox, $passed_id, $sender, $message, $imapConnection)
 
 ToggleMDNflag ($set, $imapConnection, $mailbox, $passed_id, $uid_support)
 
 formatRecipientString ($recipients, $item)
 
 formatEnvheader ($mailbox, $passed_id, $passed_ent_id, $message, $color, $FirstTimeSee)
 
 formatMenubar ($mailbox, $passed_id, $passed_ent_id, $message, $mbx_response)
 
 formatToolbar ($mailbox, $passed_id, $passed_ent_id, $message, $color)
 

Variables

const PAGE_NAME 'read_body'
 
const SM_PATH '../'
 
if(sqgetGlobalVar('passed_id', $temp)) if(sqgetGlobalVar('sort', $temp)) if(sqgetGlobalVar('startMessage', $temp)) global $uid_support
 
if(sqgetGlobalVar('passed_id', $temp)) if(sqgetGlobalVar('sort', $temp)) if(sqgetGlobalVar('startMessage', $temp)) global $sqimap_capabilities
 
 $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0)
 
 $mbx_response = sqimap_mailbox_select($imapConnection, $mailbox, false, false, true)
 
 $uidvalidity = $mbx_response['UIDVALIDITY']
 
if(!isset($messages[$uidvalidity])) if(!isset($messages[$uidvalidity][$passed_id])||! $uid_support) else
 
 $FirstTimeSee = !$message->is_seen
 
 $header = $message->header
 
if(isset($sendreceipt)) $msgs [$passed_id]['FLAG_SEEN'] = true
 
 $messagebody = ''
 
 $cnt = count($ent_ar)
 
 $attachmentsdisplay = formatAttachments($message,$ent_ar,$mailbox, $passed_id)
 
 if ( $attachmentsdisplay)
 

Function Documentation

◆ findNextMessage()

findNextMessage (   $passed_id)

Given an IMAP message id number, this will look it up in the cached and sorted msgs array and return the index. Used for finding the next and previous messages.

Returns
the index of the next valid message from the array

Definition at line 39 of file read_body.php.

References $allow_server_sort, $count, $msgs, and $sort.

Referenced by delete_move_next_read(), and formatMenubar().

◆ findPreviousMessage()

findPreviousMessage (   $numMessages,
  $passed_id 
)

returns the index of the previous message from the array.

Definition at line 77 of file read_body.php.

References $allow_server_sort, $msgs, and $sort.

Referenced by delete_move_next_read(), and formatMenubar().

◆ formatEnvheader()

◆ formatMenubar()

◆ formatRecipientString()

formatRecipientString (   $recipients,
  $item 
)

Definition at line 386 of file read_body.php.

References $cnt, $PHP_SELF, $r, $url, decodeHeader(), and set_url_var().

Referenced by formatEnvheader().

◆ formatToolbar()

formatToolbar (   $mailbox,
  $passed_id,
  $passed_ent_id,
  $message,
  $color 
)

Definition at line 676 of file read_body.php.

References $base_uri, $color, $mailbox, $url, _(), do_hook(), html_tag(), and printer_friendly_link().

Referenced by formatEnvheader().

◆ printer_friendly_link()

printer_friendly_link (   $mailbox,
  $passed_id,
  $passed_ent_id,
  $color 
)

Displays a link to a page where the message is displayed more "printer friendly".

Definition at line 117 of file read_body.php.

References $javascript_on, $mailbox, $view_unsafe_images, _(), SQ_GET, and sqgetGlobalVar().

Referenced by formatToolbar().

◆ SendMDN()

◆ ServerMDNSupport()

ServerMDNSupport (   $read)

Definition at line 161 of file read_body.php.

References $read, and $ret.

◆ ToggleMDNflag()

ToggleMDNflag (   $set,
  $imapConnection,
  $mailbox,
  $passed_id,
  $uid_support 
)

Definition at line 379 of file read_body.php.

References $imapConnection, $read, $uid_support, and sqimap_run_command().

Variable Documentation

◆ $attachmentsdisplay

$attachmentsdisplay = formatAttachments($message,$ent_ar,$mailbox, $passed_id)

Definition at line 891 of file read_body.php.

◆ $cnt

$cnt = count($ent_ar)

Definition at line 861 of file read_body.php.

Referenced by formatRecipientString().

◆ $FirstTimeSee

$FirstTimeSee = !$message->is_seen

Definition at line 796 of file read_body.php.

Referenced by formatEnvheader().

◆ $header

$header = $message->header

Definition at line 811 of file read_body.php.

Referenced by formatEnvheader(), and SendMDN().

◆ $imapConnection

$imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0)

Definition at line 774 of file read_body.php.

Referenced by SendMDN(), and ToggleMDNflag().

◆ $mbx_response

$mbx_response = sqimap_mailbox_select($imapConnection, $mailbox, false, false, true)

Definition at line 775 of file read_body.php.

Referenced by formatMenubar().

◆ $messagebody

$messagebody = ''

Definition at line 854 of file read_body.php.

◆ $msgs

◆ $sqimap_capabilities

if (sqgetGlobalVar( 'passed_id', $temp)) if (sqgetGlobalVar( 'sort', $temp)) if (sqgetGlobalVar( 'startMessage', $temp)) global $sqimap_capabilities

Definition at line 767 of file read_body.php.

Referenced by sqimap_capability().

◆ $uid_support

if (sqgetGlobalVar( 'passed_id', $temp)) if (sqgetGlobalVar( 'sort', $temp)) if (sqgetGlobalVar( 'startMessage', $temp)) global $uid_support

Definition at line 767 of file read_body.php.

Referenced by ToggleMDNflag().

◆ $uidvalidity

$uidvalidity = $mbx_response['UIDVALIDITY']

$message contains all information about the message including header and body

Definition at line 783 of file read_body.php.

◆ else

if ( $show_html_default==1) else
Initial value:
{
$message = $messages[$uidvalidity][$passed_id]

Definition at line 793 of file read_body.php.

◆ if

if($attachmentsdisplay)

Definition at line 892 of file read_body.php.

◆ PAGE_NAME

const PAGE_NAME 'read_body'

This is the read_body page

Definition at line 16 of file read_body.php.

◆ SM_PATH

const SM_PATH '../'

Path for SquirrelMail required files. @ignore

Definition at line 22 of file read_body.php.

Referenced by SendMDN().

$message
$message
Definition: download.php:54
$uidvalidity
$uidvalidity
Definition: read_body.php:783