The solution
in //Parse content-type header replace :
switch ($regs[2]) {
case 'plain':
$status = 'PLAINTEXT';
break;
case 'html':
$status = 'HTML';
break;
default :
$status = "NOFILE";
$stop = true;
with :
switch ($regs[2]) {
case 'plain':
$status = 'PLAINTEXT';
break;
case 'rtf':
$status = 'MSWORD';
break;
case 'html':
$status = 'HTML';
break;
default :
$status = "NOFILE";
$stop = true;
|