I think I finally fixed the header parser for my webmail program. I had a bug in my loop so it would freeze on certain headers - for instance, if the last header line was a continuation of the previous header (in other words, if it begins with whitespace and is meant to be folded onto the previous header). I hope now it'll work in all circumstances. I've had to use my webmail program I wrote in Perl a long time ago when the one I've been working on (in PHP) broke. Oh, and I also added the capability to send
Now all I need is reply, forward, etc. and it'll be full featured. After I put in attachment handling and the ability to deal with multipart messages, that is 
Feel free to post a comment below. Please see my comment policy.
Formatting Rules (No HTML):