Rewrite imapcli command wrapper