CRAM-MD5 Support for the Gnome Mail Check Applet

The Story:
So the other day I was sniffing my network, like a good little boy, and noticed that my email password was traveling over the wire in *gasp* plain-text. Although I've switched mutt and evolution over to use CRAM-MD5 authentication, I was running the Gnome mail check applet (which only supports plain-text passwords). I decided that this plain-text password nonsense must be put to an end. In order to help slay the plain-text demon, I went ahead and added CRAM-MD5 support for IMAP into the Gnome mail check applet. The applet is a part of gnome-core and the source file that I've mainly messed with is popcheck.c.

The Code:
I just got my code to work. I'll clean everything up and release a decent patch for it in a day or two... in the meantime, here's a really, really, fugly patch: popcheck.c.diff (The code is so ugly that when I compiled it, gcc said "popcheck.c: warning: This code is uuuuuugly.")