merged Fix imap extensions in ruby 1.9.3