Fixed Net::IMAP monkeypatch with brutal hackery