You can not configure how your IMAP server behaves using any IMAP client library. IMAP is for managing emails on the server, not for configuring server to perform automatic tasks. There is simply no such feature in IMAP protocol. However you can search, list, move, copy, delete, mark as seen/unseen, flag, delete messages, create and mange folders and finally download emails.