git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@396
7612ce4b-ef26-0410-bec9-
ea0150e637f0
}
function parseEmail ($body) {
- $body = eregi_replace ("([a-z]|[0-9]|_|\.)+\@([a-z]|[0-9]|_)+(.([a-z]|[0-9]|_)+)*", "<a href=\"mailto:\\0\">\\0</a>", $body);
+ $body = eregi_replace ("([a-z]|[0-9]|_|\.|-)+\@([a-z]|[0-9]|_)+(\.([a-z]|[0-9]|_)+)*", "<a href=\"../src/compose.php?send_to=\\0\">\\0</a>", $body);
return $body;
}
}
}
- $send_to = sqimap_find_email($send_to);
-
+ if (!$send_to) {
+ $send_to = sqimap_find_email($send_to);
+ }
+
$send_to = ereg_replace("\"", "", $send_to);
$send_to = stripslashes($send_to);