change size of a pool in imap function