views:

288

answers:

2

Hi,

how do I parse a mail in Cocoa? I've read the NSScanner tutorial, but struggled. Do you know any better way than NSScanner? Is there any sample code?

My example:

http://pastie.org/private/pordph27stkwkyvrx2tiq

Regards

A: 

If you cannot find any cocoa libraries to do the job you need done, you can always use C++ or C libraries for your tasks. e.g. Scaling Web's Parser. Apple has documentation on how to use C++ from Objective C

Harald Scheirich
A: 

I use C-Client. It's C only, a bit hard to understand but it gets the job done.

I wouldn't take on writing a MIME parser myself - it's lots of work if you look at the RFCs that come into play.

diciu