FINALLY.
I was in the wrong file. I assumed it was class.mailfetch.php because thats what grabs the mail. However it was actually in include/mysql.php
//We turn off magic_quotes_gpc in main.inc.php BUT it has no effect on runtime.
if(get_magic_quotes_gpc()) //Avoid double quotes...
$val= stripslashes($val);
I changed it to:
//We turn off magic_quotes_gpc in main.inc.php BUT it has no effect on runtime.
if(get_magic_quotes_gpc()) //Avoid double quotes...
$val=$val;
// $val= stripslashes($val);
I just hope this doesn't break anything - because I don't know what else it is responsible for. So implement at your own risk.