From da1b55add6a9207dfd72e141e2fe4ec74cf26e3e Mon Sep 17 00:00:00 2001 From: tokul Date: Tue, 29 Mar 2005 14:28:13 +0000 Subject: [PATCH] documenting two functions git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9155 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 43 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index 5b8e99d4..989018ae 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -332,12 +332,24 @@ function translateText(&$body, $wrap_at, $charset) { } /** -* This returns a parsed string called $body. That string can then -* be displayed as the actual message in the HTML. It contains -* everything needed, including HTML Tags, Attachments at the -* bottom, etc. -* @param clean Do not output stuff that's irrelevant for the printable version. -*/ + * This returns a parsed string called $body. That string can then + * be displayed as the actual message in the HTML. It contains + * everything needed, including HTML Tags, Attachments at the + * bottom, etc. + * + * Since 1.2.0 function uses message_body hook. + * Till 1.3.0 function included output of formatAttachments(). + * + * @param resource $imap_stream imap connection resource + * @param object $message squirrelmail message object + * @param array $color squirrelmail color theme array + * @param integer $wrap_at number of characters per line + * @param string $ent_num (since 1.3.0) message part id + * @param integer $id (since 1.3.0) message id + * @param string $mailbox (since 1.3.0) imap folder name + * @param boolean $clean (since 1.5.1) Do not output stuff that's irrelevant for the printable version. + * @return string html formated message text + */ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $mailbox='INBOX', $clean=FALSE) { /* This if statement checks for the entity to show as the * primary message. To add more of them, just put them in the @@ -426,7 +438,22 @@ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $ma return $body; } - +/** + * Displays attachment links and information + * FIXME: SM_PATH is used in URLs + * + * Since 1.3.0 function is not included in formatBody() call. + * + * Since 1.0.2 uses attachment $type0/$type1 hook. + * Since 1.2.5 uses attachment $type0/* hook. + * Since 1.5.0 uses attachments_bottom hook. + * + * @param object $message SquirrelMail message object + * @param array $exclude_id message parts that are not attachments. + * @param string $mailbox mailbox name + * @param integer $id message id + * @return string html formated attachment information. + */ function formatAttachments($message, $exclude_id, $mailbox, $id) { global $where, $what, $startMessage, $color, $passed_ent_id; @@ -2170,4 +2197,4 @@ function SendDownloadHeaders($type0, $type1, $filename, $force, $filesize=0) { } // end fn SendDownloadHeaders -?> +?> \ No newline at end of file -- 2.25.1