Login | Register
 
  Books Written by Brian Nantz  
  Links  
 
  MIME in C++  
Location: BlogsRight To Left    
Posted by: host 12/29/2008

MIME in C++

I am finding more info on stack overflow lately!  As a began researching MIME in C++ I ran across this helpful post.

http://stackoverflow.com/questions/218089/simple-c-mime-parser

 

Here is my research:

http://www.vmime.org/

Looks like too much.  Contains pop, SMTP, tls, IMAP, could remove this.  Posix and windows.

 

http://codesink.org/mimetic_mime_library.html

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.  Seccondly, 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.

 

http://www.mozilla.org/mailnews/arch/libmime-description.html

Hard time finding this.  Had to download the whole package.  mailnews\mime\src

 

 

http://www.example-code.com/vcpp/smime.asp

Didn’t consider because it had no source code and was windows specific.

 

http://www.scalingweb.com/mime_parser.php

Didn’t consider because it depends on other stream library from author.

 

http://httpd.apache.org/docs/2.2/mod/mod_mime.html

Couldn’t find this. C implementation.

 

I chose Mimetic for my needs although I had to add a few things to it.

Permalink |  Trackback
  Right To Left  
  Right To Left  
You must be logged in and have permission to create or edit a blog.
  Right To Left  
  Right To Left  
Copyright 2005 by Nantz Consulting & Software LLC