Add imapc API functions for mail_client.