libmime: Streaming Event MIME Message Parser in C

description

libmime is a MIME parser in the same vein as Expat, the stream-oriented XML parser.

As input is fed to the parser events are generated which an application can catch by registering event handlers. Such events include unix From_ line, start of entity, end of entity, entity boundary, header, end of headers, and body.

Additionally, libmime supports MIME message editing through a delta mechanism. Edit contexts are instantiated and changes applied to specific contexts. Edit contexts can then be expressed in standard unified diff format which, when applied to the input source stream, will result in the new message.

license

Copyright (c) 2004, 2005, 2006 Barracuda Networks, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

todo

Make the build work: rewrite Makefiles, integrate the newly released pool allocator in libarena (better then used at Barracuda).

Release the Perl wrapper, Barracuda::MIME. The Perl wrapper exposes 100% of the libmime API.

Integrate either the ICU or Mozilla character set detection algorithms to replace the best-fit guessing strategy currently used (useful for Spammers who lie about such things, and broken message generators).

download

Download the 0.0.0 alpha release tarball.

source

Source has been sanitized for public release. The build framework has been removed and will need to be replaced. Also, IBM ICU is required, as well as libarena. Integration with non-internal versions of these libraries/interfaces still needs to occur for compilation to work.

other projects

airctl | bsdauth | cnippets | libmime | libarena | libevnet | authldap | streamlocal | libnostd | zoned | dns.c | delegate.c | llrb.h | lpegk | json.c | cqueues | siphash.h | hexdump.c | timeout.c | luapath | luaossl | AnonNet