Man, this webmail project is singularly the most challenging thing I've done yet for PostNuke. The problem with Squirrel mail is that there are not strictly logic or functional based libraries to pull out. They are all tied together with output and stuff. So when a function fails, rather than return an error or "false" like you think it would, it prints the error. In order to simply load their imap libraries, I had to include 19 files! The actual imap libraries are really only about 4 of those.
So needless to say, integrating SM into PostNuke will cut us off from any upgrades... But I have not given up yet. I've got a good framework going and I really just need a solid IMAP library to use for the physical connections because there are problems with most
PHP builds. I'll try to keep you all posted. I will probably charge for the distribution of the module, but it won't be much. Probably like $15 or $20 tops and that will include support. I hope that is not a problem, but this is a ton of work.