{
$field = substr($line,0,$pos);
$value = trim(substr($line,$pos+1));
- if(!preg_match('/^X.*/i',$field)) {
+ if(!preg_match('/^X.*/i',$field) &&
+ !preg_match('/^Subject/i', $field)) {
$value = $this->stripComments($value);
}
$this->parseField($field,$value);
$i++;
}
return $s;
- }
+ }
function parseField($field,$value)
{
case ('x-mailer'):
$this->xmailer = $value;
break;
- case ('user-agent'):
- $this->xmailer = $value;
- break;
case ('x-priority'):
$this->priority = $value;
break;
}
}
-?>
\ No newline at end of file
+?>