[exim-dev] [Bug 1513] mime handling broken

Top Pagina
Delete this message
Reply to this message
Auteur: Lena
Datum:  
Aan: exim-dev
Onderwerp: [exim-dev] [Bug 1513] mime handling broken
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1513

Lena <Lena@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Lena@???





--- Comment #1 from Lena <Lena@???> 2014-07-30 20:34:30 ---
FreeBSD, Exim 4.83 from ports. Header of a test message contains:
Content-Type: multipart/mixed; boundary="DWg365Y4B18r8evw"
Body:

--DWg365Y4B18r8evw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline



--DWg365Y4B18r8evw
Content-Type: application/zip
Content-Disposition: attachment; filename="price.zip"
Content-Transfer-Encoding: base64

UEsDBBQAAgAIALKujDAkU6NQQBQAAABaAAAJAAAAcHJpY2UueGxz7VwJjCXXVb1VXb1vv/dl
<skip>
MCRTo1BAFAAAAFoAAAkAAAAAAAAAAAAgAAAAAAAAAHByaWNlLnhsc1BLBQYAAAAAAQABADcA
AABnFAAAAAA=

--DWg365Y4B18r8evw--

I ran
exim -d+all -bh 94.100.176.149 <testmessage >testmessage.out 2>testmessage.err
Excerpts from stderr:

22:26:02 2317 >>Generated Received: header line
22:26:02 2317 P Received: from mx28.mail.ru ([94.100.176.149]
helo=lenatest.mail.ru)
22:26:02 2317 by lena.kiev.ua with esmtp (Exim 4.83 (FreeBSD))
22:26:02 2317 (envelope-from <Lena@???>)
22:26:02 2317 id 1XCZVi-0000bN-AO
22:26:02 2317 for Lena@???; Wed, 30 Jul 2014 22:26:02 +0300
22:26:02 2317 Found Content-Type: header - executing acl_smtp_mime.

22:26:02  2317 Found content-type: MIME header, value is 'multipart/mixed'
22:26:02  2317 Found boundary= MIME parameter in content-type: header, value is
'"DWg365Y4B18r8evw"'
22:26:02  2317 Found content-disposition: MIME header, value is 'inline'
22:26:02  2317 using ACL "acl_check_mime"
22:26:02  2317 processing "accept"
22:26:02  2317 expanding: mime_content_type=$mime_content_type
22:26:02  2317    result: mime_content_type=multipart/mixed
22:26:02  2317 check logwrite = mime_content_type=$mime_content_type
22:26:02  2317                = mime_content_type=multipart/mixed
22:26:02  2317 LOG: MAIN
22:26:02  2317   mime_content_type=multipart/mixed
22:26:02  2317 expanding: mime_boundary=$mime_boundary
22:26:02  2317    result: mime_boundary="DWg365Y4B18r8evw"
22:26:02  2317 check logwrite = mime_boundary=$mime_boundary
22:26:02  2317                = mime_boundary="DWg365Y4B18r8evw"
22:26:02  2317 LOG: MAIN
22:26:02  2317   mime_boundary="DWg365Y4B18r8evw"
22:26:02  2317 expanding: mime_filename=$mime_filename
22:26:02  2317    result: mime_filename=
22:26:02  2317 check logwrite = mime_filename=$mime_filename
22:26:02  2317                = mime_filename=
22:26:02  2317 LOG: MAIN
22:26:02  2317   mime_filename=
22:26:02  2317 accept: condition test succeeded in ACL "acl_check_mime"
22:26:02  2317 Entering multipart recursion, boundary '"DWg365Y4B18r8evw"'
22:26:02  2317 Hit EOF ...
22:26:02  2317 using ACL "acl_check_data"


As far as I understand, MIME part boundary is not recognized in message body
because $mime_boundary erroneously contains quotes too. It's why acl_check_mime
isn't called for attachment though it should.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email