X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fimap_messages.php;h=92b96a9f115e447a7c920e755810150407638dfd;hb=4d7369b0a5abbe5eebdb60d048197cfad6a075ac;hp=84f9e6341c5e730dc2306d4c3fd7ec94466b9d2b;hpb=4e6e5d2d339f027a24afb23933016f29720cff6b;p=squirrelmail.git diff --git a/functions/imap_messages.php b/functions/imap_messages.php index 84f9e634..92b96a9f 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -57,8 +57,9 @@ function sqimap_msgs_list_move($imap_stream, $id, $mailbox, $handle_errors = tru * @param resource imap connection * @param string $mailbox mailbox, used for checking if it concerns the trash_folder * @param array $id list with uid's - * @param bool $bypass_trash skip copy to trash + * @param bool $bypass_trash (since 1.5.0) skip copy to trash * @return array $aMessageList array with messages containing the new flags and UID @see parseFetch + * @since 1.4.0 */ function sqimap_msgs_list_delete($imap_stream, $mailbox, $id, $bypass_trash=false) { // FIX ME, remove globals by introducing an associative array with properties @@ -579,11 +580,15 @@ function parseArray($read,&$i) { /** * Retrieves a list with headers, flags, size or internaldate from the imap server - * @param resource $imap_stream imap connection - * @param array $msg_list array with id's to create a msgs set from - * @param array $aHeaderFields requested header fields - * @param array $aFetchItems requested other fetch items like FLAGS, RFC822.SIZE - * @return array $aMessages associative array with messages. Key is the UID, value is an associative array + * + * WARNING: function is not portable between SquirrelMail 1.2.x, 1.4.x and 1.5.x. + * Output format, third argument and $msg_list array format requirements differ. + * @param stream $imap_stream imap connection + * @param array $msg_list array with id's to create a msgs set from + * @param array $aHeaderFields (since 1.5.0) requested header fields + * @param array $aFetchItems (since 1.5.0) requested other fetch items like FLAGS, RFC822.SIZE + * @return array $aMessages (since 1.5.0) associative array with messages. Key is the UID, value is an associative array + * @since 1.1.3 */ function sqimap_get_small_header_list($imap_stream, $msg_list, $aHeaderFields = array('Date', 'To', 'Cc', 'From', 'Subject', 'X-Priority', 'Importance', 'Priority', 'Content-Type'),