First install notifier:
$ gem install terminal-notifier
Then use pip to install required packages:
$ pip install -r requirements.txt
$ ./main_test.py
- First execute
$ cp sample.yaml configuration.yaml
- Fill with your email account data.
- The field
condition
is used to search for messages, it uses IMAP SEARCH syntax https://tools.ietf.org/html/rfc3501#page-49 - The field
interval
indicates interval of fetching in seconds. - For the field
actions
you can use a list of actions (as many as you want) to take when new messages are found. - example:
- sound: 'any_sound.wav'
will playany_sound.wav
file - example:
- notify: 'your_message'
will use macOS notification bar withyour_message
$ ./main.py