message_components.inc
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:1k
源码类别:

WEB邮件程序

开发平台:

PHP

  1. <?php
  2. /*
  3. $struct_item = $current_structure;
  4. $struct_item->description = 'Full Message';
  5. include( './pimp/templates/read/message_part_row.inc' );
  6. */
  7. if ( is_array( $current_structure->parts ) ) {
  8. include( './pimp/templates/read/message_part_title.inc' );
  9. for( $i = 0; $i < count( $current_structure->parts ); $i++ ) {
  10.    $struct_item = $current_structure->parts[ $i ] ;
  11.    if ( $struct_item->type == 0 ) {
  12.       /* This shoudle be a piece of a message */
  13.       list( $ret, $bar ) = $folder_obj->GetMessageBodySection(
  14.          $message_id,
  15.          $i + 1
  16.       );
  17.       $current_body .= $bar;
  18.    }
  19.    /* if ( $struct_item->type == 2 ) { */
  20.       /* This is a forwarded message component */
  21.       /*
  22.       list( $ret, $bar ) = $folder_obj->GetMessageBodySection(
  23.          $message_id,
  24.          $i + 1
  25.       );
  26.       $current_encapsulated_body .= $bar;
  27.       */
  28.    /*} */
  29.    include( './pimp/templates/read/message_part_row.inc' );
  30. }
  31. include( './pimp/templates/read/message_part_bottom.inc' );
  32. }
  33. ?>