diff -pur mantis-1.1.1.orig/config_defaults_inc.php mantis-1.1.1.octo/config_defaults_inc.php --- mantis-1.1.1.orig/config_defaults_inc.php 2008-01-16 23:16:24.000000000 +0100 +++ mantis-1.1.1.octo/config_defaults_inc.php 2008-03-30 17:59:44.000000000 +0200 @@ -306,6 +306,7 @@ # This specifies the access level that is needed to get the mailto: links. $g_show_user_email_threshold = NOBODY; + $g_mailto_markup_threshold = NOBODY; # If use_x_priority is set to ON, what should the value be? # Urgent = 1, Not Urgent = 5, Disable = 0 diff -pur mantis-1.1.1.orig/core/string_api.php mantis-1.1.1.octo/core/string_api.php --- mantis-1.1.1.orig/core/string_api.php 2007-12-10 01:22:38.000000000 +0100 +++ mantis-1.1.1.octo/core/string_api.php 2008-03-30 18:15:04.000000000 +0200 @@ -399,9 +399,17 @@ ini_set( 'magic_quotes_sybase', true ); } - $p_string = preg_replace( '/\b' . email_regex_simple() . '\b/i', - '\0', - $p_string); + if ( access_has_project_level( config_get( 'mailto_markup_threshold' ) ) ) { + $p_string = preg_replace( '/\b' . email_regex_simple() . '\b/i', + '\0', + $p_string); + } else { + $t_random = rand (); + $p_string = preg_replace( '/\b' . email_regex_simple() . '\b/i', + "\\2@nospam$t_random.\\3", + $p_string); + } + return $p_string; }