Update imap_extensions.rb

Match imap changes. Coping with change rather than being clever.