Re: [PATCH] multipart MIME output

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization tolj.org system architecture
Message-ID <[email protected]>
P. A. Bagyenda schrieb:
> hi,
> 
> For a while I've noticed spurious CRLF at the end of body parts inside 
> multipart MIME messages.  I believe I have tracked this down to a couple 
> of bugs in the gwlib/mime.c  module, which is used heavily by Mbuni MMS 
> Gateway.
> 
>  Attached patch fixes these. Broadly, the code was too complicated for 
> what should have been a simpler task (thanks partly to your truly!). 
> I've tried to simplify the code to be true to RFC 2046 Sec. 5. Tests 
> confirm that it is doing the right thing now.
> 
>  In addition, the test case for multipart mime is actually mal-formed 
> itself :(, lacking CRLF after each header, and at certain boundaries. A 
> cleaner one is attached.

Thanks again Paul. Committed to CVS:

2008-07-02  Stipe Tolj  <stolj at kannel.org>
     * gwlib/mime.c: fix and relax function mime_entity_to_octstr() for end of
       line chars. Thanks to Paul Bagyenda for providing the patch.
       [Msg-Id: <[email protected]>]
     * test/mime-multipart.txt: demo MIME multipart input file for test/
       test_mime_multipart.c.

Stipe

-------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany

tolj.org system architecture      Kannel Software Foundation (KSF)
http://www.tolj.org/              http://www.kannel.org/

mailto:st_{at}_tolj.org           mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.