On Thu, 18 Sep 2003, Henry Baragar wrote: >Andy, >Did you write the MIME parser yourself or are you using an existing one? >If MIME parsing is so tricky, have you considered using freely available >implementation (such as Mozilla's libmime) at least in the interim?
Oh yes, believe me - I have done plenty of research in MIME parsers. Binc even started out with using GMime, but that monster was too much to tame. I did not want to write a MIME parser on my own, but my options were limited: - There are very few GPL (or compatible) mime parsers - The existing mime parsers are difficult to compile on any platform, as they more than often introduce dependencies to a multitude of other packages - 95% of the features would stay unused by Binc The MIME parser required in IMAP is really just around 500 lines of code. All other parsers out there are huge, some ranging over 100k lines :-). I think the MIME parser in Binc is just about fine, and if we can get the two bugs mentioned out, and then I think we can shrink the size of it even further. I have this dream that we can tame the MIME monster with only 300 lines of code. :-) But yes, I have done plenty of research in this area. Andy :-) -- Andreas Aardal Hanssen | http://www.andreas.hanssen.name/gpg Author of Binc IMAP | "It is better not to do something http://www.bincimap.org/ | than to do it poorly."

