Interesting history. I kind of wondered because most people do not follow the old standard when writing C and use some of the C++ features. I like the old.
I think I will go ahead and set a define for the max email address size, and update the code to use that as the limit, but not actually increase the current limits. Later we can increase it and test with different mail clients. I know that when I tested against Outlook with a ridiculously sized email address, it had problems displaying it, but did not harm anything. What clients do you test against? I will do this after I fix a bug in the IMAP code. I update my server to the latest and everything looked great and within a day it core dumped. Turns out it had nothing to do with any of the recent changes. It was very old code processing the BODY statement partial specification. I was not able to reproduce it, but looking at the code, if someone passed some bad start/length, it does some bad math with unsigned integers which is probably what caused it to try to copy a bunch of characters from an empty string and dumped. I am looking forward to the new WebCit.
