Ignore:
Timestamp:
04/07/10 16:24:00 (14 years ago)
Author:
rodsouza
Message:

Ticket #1025 - Removendo a instrução 'new_message_to'. Tranferido para o javascript.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/expressoMail1_2/inc/class.imap_functions.inc.php

    r2415 r2452  
    12251225                // E-mail address in the text should create a new e-mail on ExpressoMail 
    12261226                $pattern = '/( |<|&lt;|>)([A-Za-z0-9\.~?\/_=#\-]*@[A-Za-z0-9\.~?\/_=#\-]*)( |>|&gt;|<)/im'; 
    1227                 $replacement = '$1<a href="javascript:new_message_to(\'$2\')">$2</a>$3'; 
    1228                 $body = preg_replace( $pattern, $replacement, $body ); 
    1229  
    1230                 // If there is an link with a "mailto:" in href attribute, it will changed to create a new e-mail on ExpressoMail. 
    1231                 $pattern = '/<a[^>]+href=["\']mailto:([^"]+)["\'][^>]*>([^<]+)<\/a>/im'; 
    1232                 $replacement = '<a href="javascript:new_message_to(\'$1\')">$2</a>'; 
     1227                $replacement = '$1<a href="mailto:$2">$2</a>$3'; 
    12331228                $body = preg_replace( $pattern, $replacement, $body ); 
    12341229 
     
    18581853                                return "The server denied your request to send a mail, you cannot use this mail address."; 
    18591854                } 
    1860  
    1861                 //new_message_to backs to mailto: pattern 
    1862                 $params['body'] = eregi_replace("<a href=\"javascript:new_message_to\('([^>]+)'\)\">[^>]+</a>","<a href='mailto:\\1'>\\1</a>",$params['body']); 
    18631855 
    18641856                $toaddress = implode(',',$db->getAddrs(explode(',',$params['input_to']))); 
Note: See TracChangeset for help on using the changeset viewer.