IMAP conditions

Copy over the conditions to the appropriate place.