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)  

move_messages.php File Reference

Go to the source code of this file.

Namespaces

 squirrelmail
 

Functions

if(!sqgetGlobalVar('composesession', $composesession, SQ_SESSION)) attachSelectedMessages ($msg, $imapConnection)
 

Variables

const PAGE_NAME 'move_messages'
 
const SM_PATH '../'
 
global $compose_new_win
 
 $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0)
 
 $mbx_response =sqimap_mailbox_select($imapConnection, $mailbox)
 
 $location = set_url_var($location,'composenew',0,false)
 
if(!isset($lastTargetMailbox)) if($targetMailbox !=$lastTargetMailbox) $exception = false
 
 $id = array()
 
if(isset($msg) &&is_array($msg)) if(isset($expungeButton)) elseif(isset($undeleteButton)) elseif(!isset($moveButton)) else
 
 exit
 

Function Documentation

◆ attachSelectedMessages()

Variable Documentation

◆ $compose_new_win

global $compose_new_win

Definition at line 21 of file move_messages.php.

◆ $exception

if (!isset( $lastTargetMailbox)) if ( $targetMailbox !=$lastTargetMailbox) $exception = false

Definition at line 181 of file move_messages.php.

◆ $id

◆ $imapConnection

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

Definition at line 163 of file move_messages.php.

Referenced by attachSelectedMessages().

◆ $location

$location = set_url_var($location,'composenew',0,false)

Definition at line 166 of file move_messages.php.

◆ $mbx_response

$mbx_response =sqimap_mailbox_select($imapConnection, $mailbox)

Definition at line 164 of file move_messages.php.

◆ else

if ( $exception) else
Initial value:
{
if (count($id)) {
if ($mailbox!=$targetMailbox) {
} else {
$cnt = 0;
}
if (($startMessage+$cnt-1) >= $mbx_response['EXISTS']) {
if ($startMessage > $show_num) {
$location = set_url_var($location,'startMessage',$startMessage-$show_num, false);
} else {
$location = set_url_var($location,'startMessage',1, false);
}
}
}
} else {
$exception = true;
}
}

Definition at line 251 of file move_messages.php.

◆ exit

exit

Definition at line 281 of file move_messages.php.

◆ PAGE_NAME

const PAGE_NAME 'move_messages'

This is the move_messages page

Definition at line 15 of file move_messages.php.

◆ SM_PATH

const SM_PATH '../'

Definition at line 18 of file move_messages.php.

sqimap_mailbox_expunge
sqimap_mailbox_expunge($imap_stream, $mailbox, $handle_errors=true, $id='')
Definition: imap_mailbox.php:198
$cnt
$cnt
Definition: options_identities.php:86
$id
$id
Definition: move_messages.php:190
$mailbox
$mailbox
Definition: options.php:28
set_url_var
set_url_var($url, $var, $val=null, $link=true)
Definition: html.php:109
$exception
if(!isset($lastTargetMailbox)) if($targetMailbox !=$lastTargetMailbox) $exception
Definition: move_messages.php:181
$location
$location
Definition: move_messages.php:166
$imapConnection
$imapConnection
Definition: move_messages.php:163
$show_num
$show_num
Definition: load_prefs.php:130
sqimap_msgs_list_move
sqimap_msgs_list_move($imap_stream, $id, $mailbox, $handle_errors=true)
Definition: imap_messages.php:56
sqimap_logout
sqimap_logout($imap_stream)
Definition: imap_general.php:639
$mbx_response
$mbx_response
Definition: move_messages.php:164
$auto_expunge
$auto_expunge
Definition: config_default.php:397