Changeset 603 for trunk/expressoMail1_2/inc/class.imap_functions.inc.php
- Timestamp:
- 01/14/09 11:47:51 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r591 r603 180 180 $return_get_body = $this->get_body_msg($msg_number, $msg_folder); 181 181 182 //Substituição de links por hiperlinks no texto. 183 $body = ereg_replace("^<>\'&^<>\"[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]","<a href='\\0'>\\0</a>",$return_get_body['body']); 184 $body = ereg_replace("^<>\'&^<>\"www[^<>[:space:]]+[[:alnum:]/]","<a href='http://\\0'>\\0</a>",$body); 185 182 //Substituição de links em email para abrir no próprio expresso 183 $body = ereg_replace("<a[^>]*href=[\'\"]mailto:([^\"\']+)[\'\"]>([^<]+)</a>","<a href=\"javascript:new_message_to('\\1')\">\\2</a>",$return_get_body['body']); 184 186 185 $return['body'] = $body; 187 186 $return['attachments'] = $return_get_body['attachments'];
Note: See TracChangeset
for help on using the changeset viewer.