General BATCH_SIZE in imap calls