If you add this code (in all spots cron and product xml) right after text_subject is defined, the EmailIntegration script will handle the custom prefixes _and_ use a default one if none is found - it seemed to already take into account the original prefixing anyhow [\$foruminfo[title_clean]-t-\$threadinfo[threadid]]:
Code:
// prefix code - cgmckeever
// use default
if (strlen($threadinfo[threadprefix]) == 0){
$prefixes = explode("\r\n", trim($foruminfo['threadprefix']));
$threadinfo[threadprefix] = $prefixes[0];
}
// wrap the prefix
if (strlen($threadinfo[threadprefix]) != 0){
$threadinfo[threadprefix] = str_replace('{1}',$threadinfo[threadprefix],$vbulletin->options['prefixmarkupalt']);
$threadinfo[threadprefix] = str_replace(' ',' ',$threadinfo[threadprefix]);
// get rid of built in prefix
$text_subject = trim(str_replace("[\$foruminfo[title_clean]-t-\$threadinfo[threadid]]",'',$text_subject));
$text_subject = trim("\$threadinfo[threadprefix] " . $text_subject);
}
// end prefix code - cgmckeever