Changeset 2406 for trunk/expressoMail1_2/inc
- Timestamp:
- 04/01/10 16:51:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r2399 r2406 1267 1267 // E-mail address in the text should create a new e-mail on ExpressoMail 1268 1268 $pattern = '/( |<|<|>)([A-Za-z0-9\.~?\/_=#\-]*@[A-Za-z0-9\.~?\/_=#\-]*)( |>|>|<)/im'; 1269 $replacement = '$1<a href="javascript:new_message_to(\'$2\')">$2</a>$3'; 1270 $body = preg_replace( $pattern, $replacement, $body ); 1271 1272 // If there is an link with a "mailto:" in href attribute, it will changed to create a new e-mail on ExpressoMail. 1273 $pattern = '/<a[^>]+href=["\']mailto:([^"]+)["\'][^>]*>([^<]+)<\/a>/im'; 1274 $replacement = '<a href="javascript:new_message_to(\'$1\')">$2</a>'; 1269 $replacement = '$1<a href="mailto:$2">$2</a>$3'; 1275 1270 $body = preg_replace( $pattern, $replacement, $body ); 1276 1271
Note: See TracChangeset
for help on using the changeset viewer.