Imaplar monitors one or more mailboxes on one or more IMAP servers. Unseen messages are passed to a user defined policy for processing.
See the manual for more information.
Imaplar is released on PyPI, so all you need to do is:
$ pip install imaplar
Copyright (C) 2017-2022, Michael Paddon.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.