OoO Pendant le temps de midi du dimanche 10 octobre 2010, vers 12:46, Jort Koopmans <jort.koopm...@gmail.com> disait :
>> > I have tested with roundcube from squeeze sending mail to an amavisd >> > from lenny. I do not get a BAD HEADER SECTION. However, the Content-Type >> > header contains the boundary twice. It think this may be related. Could >> > you check what Content-Type do you get in your quarantined message? >> > X-PHP-Originating-Script: 0:func.inc > MIME-Version: 1.0 > Content-Type: multipart/mixed; > boundary="=_fce46910f3b128bcbbfed9efa85812c9"; > boundary="=_fce46910f3b128bcbbfed9efa85812c9" > Thats a double indeed i'd say. Could you apply the attached patch? It fixes the problem for me. If it also fixes your problem, I will do an upload shortly.
Fix #599586 which was caused by duplicate boundaries. The fix is to simply use _addMixedPart from original Mail_Mime class which is recent enough in our case. --- roundcube/program/include/rcube_mail_mime.php~ 2009-05-01 19:58:12.000000000 +0200 +++ roundcube/program/include/rcube_mail_mime.php 2010-10-18 19:31:33.751930400 +0200 @@ -102,12 +102,12 @@ * @return object The multipart/mixed mimePart object * @access private */ - function &_addMixedPart() + /* function &_addMixedPart() { $params['content_type'] = $this->_headers['Content-Type'] ? $this->_headers['Content-Type'] : 'multipart/mixed'; $ret = new Mail_mimePart('', $params); return $ret; - } + } */ /**
-- Make it right before you make it faster. - The Elements of Programming Style (Kernighan & Plauger)
pgpB9briowsjd.pgp
Description: PGP signature