기본 콘텐츠로 건너뛰기

라벨이 php인 게시물 표시

Amavis + RoundCube를 이용하여 메일을 보낼때 "BAD HEADER SECTION"

환경 Debian Lenny(5.0.4) amavisd-new(2.6.1) postfix(2.5.5-1.1) php(5.2.6) RoundCube(0.2.2) 메세지헤더에 아래와 같은 문구가 보인다면 X-Virus-Scanned: Debian amavisd-new at mail.xxxx.xxx X-Amavis-Alert: BAD HEADER SECTION, Improper use of control character (char 0D hex): Subject: ...B8=20=EB=A9=94=EC=9D=BC?=\r\n =?UTF-8?Q?=EC[...] roundCube의 program/steps/mail/sendmail.inc의 +395라인쯤에 위치한 코드를 $headers['Subject'] = mb_encode_mimeheader($headers['Subject'], $message_charset, 'Q'); 아래와 같이 수정하여 메일을 발송하면 해당 메세지가 사라진다. $headers['Subject'] = mb_encode_mimeheader($headers['Subject'], $message_charset, 'Q', $RCMAIL->config->header_delimiter(), 8); [참고] http://trac.roundcube.net/ticket/1486418 [참고] http://kr2.php.net/manual/en/function.mb-encode-mimeheader.php

net2ftp수정

//version 0.98 [.과 ..표시 없애기] if ($listline["dirfilename"] == "." || $listline["dirfilename"] == "..") { return ""; } elseif (substr($rawlistline,0,5) == "total") { return ""; } includes/browse.inc.php line 456라인 주변에 위의 스크립트를 찾아서 아래와 같이 바꿀것. if (substr($listline["dirfilename"],0,1) == ".") { return ""; } elseif (substr($rawlistline,0,5) == "total") { return ""; } [다운로드시 파일명이 index.php로 변하는 버그] include/filesystem.inc.php line 1360라인 주변의 ftp_downloadfile함수를 주석처리하고 아래 함수로 교체할 것. function ftp_downloadfile($directory, $entry) { global $net2ftp_globals, $net2ftp_result, $net2ftp_settings; $conn_id = ftp_openconnection(); if ($net2ftp_result["success"] == false) { return false; } // Decrypt password if (isset($_SESSION["net2ftp_password_encrypted_" . $net2ftp_globals["ftpserver"] . $net2ftp_globals["username"]]) =...