temp fix for imap (until the imap package updates)