Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I know this may be too little, too late, but I had a similar need. I wanted a mime parser that just did the encoding and decoding of the MIME. For the sake of completeness and for Google-ability I thought I should put my findings here. Keep in mind that I was not interested in send and receiving mail, just encoding and decode MIME. Here are the libraries I researched for C++ MIME:</p> <p><a href="http://www.vmime.org" rel="noreferrer">http://www.vmime.org/</a> - Looks like too much. Contains pop, SMTP, tls, IMAP, could remove this. Posix and windows.</p> <p><a href="http://codesink.org/mimetic_mime_library.html" rel="noreferrer">http://codesink.org/mimetic_mime_library.html</a> - looks promising. Very nice api for reading in and creating messages. Went with this one. Not too heavy. Had to “fix” 2 things. First for multipart the code was just check for the string “multipart” and did not recognize “multipart/mixed” and did not write out the parts. Secondly, I had to hack the mimeentity write code. It was just writing out the std::deque Field and since these are strings it seem to be doing so alphabetically. This is problem because the MIME-version has to be the first field written out. So I fixed this. I also had to add support for Content-Length.</p> <p><a href="http://www.mozilla.org/mailnews/arch/libmime-description.html" rel="noreferrer">http://www.mozilla.org/mailnews/arch/libmime-description.html</a> - Hard time finding this. Had to download the whole package. mailnews\mime\src</p> <p><a href="http://www.example-code.com/vcpp/smime.asp" rel="noreferrer">http://www.example-code.com/vcpp/smime.asp</a> - Didn’t consider because it had no source code and was windows specific.</p> <p><a href="http://www.scalingweb.com/mime_parser.php" rel="noreferrer">http://www.scalingweb.com/mime_parser.php</a> - Didn’t consider because it depends on other stream library from author.</p> <p><a href="http://httpd.apache.org/docs/2.2/mod/mod_mime.html" rel="noreferrer">http://httpd.apache.org/docs/2.2/mod/mod_mime.html</a> - Couldn’t find this C implementation.</p> <p>I chose Mimetic for my needs although I had to add a few things to it. None of the parsers I found handled the optional fields (Content-Length, etc..) very well. I also needed it to support multiple platforms (Windows, Linux, etc..)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload