This has kind of frustrated me for a few hours of searching. We currently have a php script that checks a mailbox for new messages and parses those out, after which we do some processing with the data. In php its super simple to use the mail function to do this. However for scalability in the next stage of this project I am going to convert the email reader to a C daemon that just reads the mail and launched a child php process to handle the message data.
I am having a hard time finding how to emulate the functionity of the php mail function. It seems that nothing in C exists that is simple and easy to use. I have found the UW IMAP c client UW IMAP software--IMAP Information Center. Not sure if this is what I am looking for.
Any insight or help into the matter is greatly appreciated!