Looking for advice on IMAP/NTLM support

Hey all. I’m somewhat new to Ruby, and need to login to an IMAP server
that uses NTLM authentication. It doesn’t look like RIT supports this
method of authentication. Does anyone have any advice as far as adding
support for this protocol?

I tried a quick and dirty port of the perl counter-part
(http://search.cpan.org/src/MARKBUSH/NTLM-1.02/NTLM.pm), but I’m
running into some trouble. Has anyone else attempted this? Any ideas on
where to start?