Ignore:
Timestamp:
01/14/09 11:47:51 (15 years ago)
Author:
eduardoalex
Message:

Ticket #396

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r591 r603  
    180180                $return_get_body = $this->get_body_msg($msg_number, $msg_folder); 
    181181                 
    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                         
    186185                $return['body']                 = $body; 
    187186                $return['attachments']  = $return_get_body['attachments']; 
Note: See TracChangeset for help on using the changeset viewer.