326 |
$result["mailbox"]=trim($mailbox); |
$result["mailbox"]=trim($mailbox); |
327 |
$result["host"]=trim($host); |
$result["host"]=trim($host); |
328 |
// $personal = mb_convert_encoding($personal, "EUC-JP", "auto"); |
// $personal = mb_convert_encoding($personal, "EUC-JP", "auto"); |
|
$personal = ereg_replace("\\(.)", $regs[1], $personal); |
|
329 |
if ($personal!="") $result["personal"]=$personal; |
if ($personal!="") $result["personal"]=$personal; |
330 |
$complete[]=$result; |
$complete[]=$result; |
331 |
return ($complete); |
return ($complete); |
447 |
else |
else |
448 |
$newvalue=headerDecode($newvalue); // maybe there are more encoded |
$newvalue=headerDecode($newvalue); // maybe there are more encoded |
449 |
return(mb_convert_encoding($newvalue, "EUC-JP", "auto")); // parts |
return(mb_convert_encoding($newvalue, "EUC-JP", "auto")); // parts |
450 |
} else { // there wasn't anything encoded, return the original string |
} else { |
451 |
return(mb_convert_encoding($value, "EUC-JP", "auto")); |
if (eregi('".*"',$value)) { // quoted-printable decoding |
452 |
|
$result1=eregi_replace('(.*)"(.*)"(.*)','\1',$value); |
453 |
|
$result2=eregi_replace('(.*)"(.*)"(.*)','\2',$value); |
454 |
|
$result3=eregi_replace('(.*)"(.*)"(.*)','\3',$value); |
455 |
|
$result2=eregi_replace('\\(.)','\1',$result2); |
456 |
|
$newvalue=$result1.$result2.$result3; |
457 |
|
return(mb_convert_encoding($newvalue, "EUC-JP", "auto")); |
458 |
|
} else { // there wasn't anything encoded, return the original string |
459 |
|
return(mb_convert_encoding($value, "EUC-JP", "auto")); |
460 |
|
} |
461 |
} |
} |
462 |
} |
} |
463 |
|
|
1691 |
// fputs($ns,"Mime-Version: 1.0\r\n"); |
// fputs($ns,"Mime-Version: 1.0\r\n"); |
1692 |
// fputs($ns,"Content-Type: text/plain; charset=ISO-8859-1\r\n"); |
// fputs($ns,"Content-Type: text/plain; charset=ISO-8859-1\r\n"); |
1693 |
// fputs($ns,"Content-Transfer-Encoding: 8bit\r\n"); |
// fputs($ns,"Content-Transfer-Encoding: 8bit\r\n"); |
1694 |
fputs($ns,"User-Agent: $text_ua["user_agent"]\r\n"); |
fputs($ns,"User-Agent: ".$text_ua["user_agent"]."\r\n"); |
1695 |
if ($send_poster_host) |
if ($send_poster_host) |
1696 |
fputs($ns,'X-HTTP-Posting-Host: '.gethostbyaddr(getenv("REMOTE_ADDR"))."\r\n"); |
fputs($ns,'X-HTTP-Posting-Host: '.gethostbyaddr(getenv("REMOTE_ADDR"))."\r\n"); |
1697 |
if ($ref!=false) fputs($ns,'References: '.$ref."\r\n"); |
if ($ref!=false) fputs($ns,'References: '.$ref."\r\n"); |