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
(NTLM.pm - metacpan.org), but I’m
running into some trouble. Has anyone else attempted this? Any ideas on
where to start?