void
elapsedTime
( $start)
get_parent_level (line
231)
Returns an indent array for printMessageinfo()
This represents the amount of indent needed (value), for this message number (key)
void
get_parent_level
( $imap_stream)
get_reference_header (line
80)
Returns the references header lines
void
get_reference_header
( $imap_stream, $message)
get_thread_sort (line
330)
Returns an array with each element as a string representing one message-thread as returned by the IMAP server.
void
get_thread_sort
( $imap_stream)
Parses a string containing an array from an imap response. String starts with ( and end with )
array
parseArray
(string $read, &$i, integer $i)
-
string
$read: imap response
-
integer
$i: (reference) offset in string
-
&$i
Normalise the different Priority headers into a uniform value, namely that of the X-Priority header (1, 3, 5). Supports: Prioirty, X-Priority, Importance.
X-MS-Mail-Priority is not parsed because it always coincides with one of the other headers.
DUPLICATE CODE ALERT: NOTE: this is actually a duplicate from the function in class/mime/Rfc822Header.php.
void
parsePriority
( $sValue)
Parses a string in an imap response. String starts with " or { which means it can handle double quoted strings and literal strings
string
parseString
(string $read, &$i, integer $i)
-
string
$read: imap response
-
integer
$i: (reference) offset in string
-
&$i
sqimap_get_ent_header (line
853)
Wrapper function that reformats the entity header information.
Obsolete?
void
sqimap_get_ent_header
( $imap_stream, $id, $mailbox, $ent)
-
$imap_stream
-
$id
-
$mailbox
-
$ent
sqimap_get_headerfield (line
747)
Obsolete?
void
sqimap_get_headerfield
( $imap_stream, $field)
sqimap_get_message (line
802)
Returns a message array with all the information about a message.
See the documentation folder for more information about this array.
void
sqimap_get_message
( $imap_stream, $id, $mailbox)
-
$imap_stream
-
$id
-
$mailbox
sqimap_get_message_header (line
839)
Wrapper function that reformats the header information.
Obsolete?
void
sqimap_get_message_header
( $imap_stream, $id, $mailbox)
-
$imap_stream
-
$id
-
$mailbox
sqimap_get_mime_ent_header (line
867)
Function to get the mime headers
Obsolete?
void
sqimap_get_mime_ent_header
( $imap_stream, $id, $mailbox, $ent)
-
$imap_stream
-
$id
-
$mailbox
-
$ent
sqimap_get_php_sort_order (line
188)
Get sort order from server if server does not have the SORT extension and return it as array for mailbox_display.
array
sqimap_get_php_sort_order
(resource $imap_stream, array $mbxresponse)
-
resource
$imap_stream
-
array
$mbxresponse: response from a sqimap_mailbox_select
sqimap_get_small_header (line
943)
Obsolete?
void
sqimap_get_small_header
( $imap_stream, $id, $sent)
sqimap_get_small_header_list (line
509)
Retrieves a list with headers, flags, size or internaldate from the imap server
void
sqimap_get_small_header_list
( $imap_stream, $msg_list, [ $show_num = false])
-
$imap_stream
-
$msg_list
-
$show_num
sqimap_get_sort_order (line
96)
Get sort order from server and return it as the $id array for mailbox_display
void
sqimap_get_sort_order
( $imap_stream, $sort, $mbxresponse)
-
$imap_stream
-
$sort
-
$mbxresponse
sqimap_messages_copy (line
891)
Copies specified messages to specified folder
This function is removed from SquirrelMail 1.5.1 and later versions.
boolean
sqimap_messages_copy
(stream $imap_stream, string $start, string $end, string $mailbox, [boolean $handle_errors = true])
-
stream
$imap_stream: IMAP connection resource
-
string
$start: starting message id or uid.
-
string
$end: end message id or uid
-
string
$mailbox: target mailbox
-
boolean
$handle_errors: (since 1.4.8) handle errors
sqimap_messages_delete (line
902)
Deletes specified messages and moves them to trash if possible
Obsolete
void
sqimap_messages_delete
( $imap_stream, $start, $end, $mailbox)
-
$imap_stream
-
$start
-
$end
-
$mailbox
sqimap_messages_flag (line
919)
Sets the specified messages with specified flag
void
sqimap_messages_flag
( $imap_stream, $start, $end, $flag, $handle_errors)
-
$imap_stream
-
$start
-
$end
-
$flag
-
$handle_errors
sqimap_messages_remove_flag (line
926)
void
sqimap_messages_remove_flag
( $imap_stream, $start, $end, $flag, $handle_errors)
-
$imap_stream
-
$start
-
$end
-
$flag
-
$handle_errors
sqimap_message_list_squisher (line
52)
Sort the message list and crunch to be as small as possible
(overflow could happen, so make it small if possible)
void
sqimap_message_list_squisher
( $messages_array)
sqimap_msgs_list_copy (line
23)
Moves a set of messages ($id) to another mailbox ($mailbox) WARNING: function name does not match performed operation.
Function performs message copy and flags existing messages as deleted
void
sqimap_msgs_list_copy
( $imap_stream, $id, $mailbox)
-
$imap_stream
-
$id
-
$mailbox
sqimap_msgs_list_delete (line
34)
Deletes a message and move it to trash or expunge the mailbox
void
sqimap_msgs_list_delete
( $imap_stream, $mailbox, $id)
-
$imap_stream
-
$mailbox
-
$id
sqimap_toggle_flag (line
932)
void
sqimap_toggle_flag
( $imap_stream, $id, $flag, $set, $handle_errors)
-
$imap_stream
-
$id
-
$flag
-
$set
-
$handle_errors