Update email imap segment to allow ENV vars usage for credentials