- Timestamp:
- 05/07/10 16:54:07 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/expressoMail1_2/inc/class.imap_functions.inc.php
r2455 r2740 708 708 return $return; 709 709 } 710 711 $content = $this->decodeBody( 712 imap_body( $this -> mbox, $msg_number, FT_UID ), 713 $msg -> encoding[ $msg_number ][ 0 ], 714 $msg -> charset[ $msg_number ][ 0 ] 715 ); 716 717 if ( strtolower( $msg -> structure[ $msg_number ] -> subtype ) == 'plain' ) 718 { 719 $content = str_replace( array( '<', '>' ), array( ' #$<$# ', ' #$>$# ' ), $content ); 720 $content = nl2br( htmlentities( $content ) ); 721 $content = $this -> replace_links( $content ); 722 $content = str_replace( array( ' #$<$# ', ' #$>$# ' ), array( '<', '>' ), $content ); 723 $content = '<span style="font-family: monospace">' . $content . '</span>'; 724 725 $return[ 'body' ] = $content; 726 727 return $return; 710 $content = ''; 711 // If simple message is subtype 'html' or 'plain', then get content body. 712 if(strtolower($msg->structure[$msg_number]->subtype) == "html" || 713 strtolower( $msg -> structure[ $msg_number ] -> subtype ) == 'plain'){ 714 715 $content = $this->decodeBody( 716 imap_body( $this -> mbox, $msg_number, FT_UID ), 717 $msg -> encoding[ $msg_number ][ 0 ], 718 $msg -> charset[ $msg_number ][ 0 ] 719 ); 720 721 if ( strtolower( $msg -> structure[ $msg_number ] -> subtype ) == 'plain' ) 722 { 723 $content = str_replace( array( '<', '>' ), array( ' #$<$# ', ' #$>$# ' ), $content ); 724 $content = nl2br( htmlentities( $content ) ); 725 $content = $this -> replace_links( $content ); 726 $content = str_replace( array( ' #$<$# ', ' #$>$# ' ), array( '<', '>' ), $content ); 727 $content = '<span style="font-family: monospace">' . $content . '</span>'; 728 729 $return[ 'body' ] = $content; 730 731 return $return; 732 } 728 733 } 729 734 }
Note: See TracChangeset
for help on using the changeset viewer.