Mime Parsing
Peter A. Friend
octavian at corp.earthlink.net
Wed Jun 25 22:30:50 EDT 2008
Judy Northrop wrote:
> I just joined this list with the hope of correcting a problem with my
> mail. I configured my Solaris 10/postfix system about 18 months ago and
> recently started getting corrupt pdf files. I began searching the list
> archives but have not located and common thread. My Imap configuration
> is,
>
Judy,
A few questions. First, that base64 data at the end of your example, was
it really that truncated, or did you just include a few lines? I ask
because several crucial bits of information are missing. I would need to
see the main header of the message to see what the Content-Type and MIME
boundary strings are set to. From your example, it would appear that the
top level boundary string is "------=_Part_23627_8483441.1214401029804".
One MIME section with that boundary is a standard multipart with one
plain text and one html portion. Those parts have their own boundary
which is "----=_Part_23628_23828759.1214401029804". That boundary is
properly terminated. What I don't see is the closing marker for the
first boundary string (the one that ends with --). Have you looked at
the raw message file delivered by Postfix, and is that truncated?
Peter
>
> localhost> ver
> name : Cyrus IMAPD
> version : v2.2.12 2005/02/14 16:43:51
> vendor : Project Cyrus
> support-url: http://asg.web.cmu.edu/cyrus
> os : SunOS
> os-version : 5.10
> environment: Built w/Cyrus SASL 2.1.22
> Running w/Cyrus SASL 2.1.22
> Built w/Sleepycat Software: Berkeley DB 4.4.20: (January
> 10, 2006)
> Running w/Sleepycat Software: Berkeley DB 4.4.20: (January
> 10, 2006)
> Built w/OpenSSL 0.9.8d 28 Sep 2006
> Running w/OpenSSL 0.9.8d 28 Sep 2006
> CMU Sieve 2.2
> mmap = shared
> lock = fcntl
> nonblock = fcntl
> auth = unix
> idle = poll
>
> I am including a portion of received email, you can see something is not
> parsing correctly. Anyway if someone could point me in to some type of
> resolution it would be appreciated.
>
> Thanks - Judy
>
>
>
>
> ------=_Part_23627_8483441.1214401029804
> Content-Type: multipart/alternative;
> boundary="----=_Part_23628_23828759.1214401029804"
>
> ------=_Part_23628_23828759.1214401029804
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
>
> stolt
>
> ------=_Part_23628_23828759.1214401029804
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
>
> stolt<br>
>
> ------=_Part_23628_23828759.1214401029804--
>
> ------=_Part_23627_8483441.1214401029804
> Content-Type: application/pdf; name=stolt.pdf
> Content-Transfer-Encoding: base64
> X-Attachment-Id: f_fhvysr5d0
> Content-Disposition: attachment; filename=stolt.pdf
>
> JVBERi0xLjMKJcX+69cKMzEgMCBvYmoKPDwgL0xpbmVhcml6ZWQgMSAvTCAzNDU3NjQgL0ggWyAx
> MTQ0IDIxNCBdIC9PIDMzIC9FIDE0MzQyOCAvTiAzIC9UIDM0NTAyNSA+PgplbmRvYmoKICAgICAg
>
>
> ----
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>
>
More information about the Info-cyrus
mailing list