The AlmaLinux Errata Email Notifications script checks the public errata json files for AlmaLinux distributions and sends notification emails with every new update.
We used Python 3.8 when creating the script but should work with any Python 3.x version.
The recommended workflow to install dependencies is:
pip3 install -r requirements.txt
If you want to use a Python virtual environment you can create it by running:
python3 -m venv venv && source venv/bin/activate
In order for the script to run, you have to provide a Gmail Application Password. This password needs to be put in a file called app-passwd, and needs to be placed in the same folder as the script.
There are other options to send emails:
For now we wanted to keep it simple, we can change the approach if we decide is worth doing it.
The script needs to be called with 3 arguments:
The script has also optional arguments to:
If you want to send errata notifications for AlmaLinux 8, you can run:
errata-email-notifications -d almalinux-8 -s sender@gmail.com -r recipient@mail.com
If you want to send errata notifications for both AlmaLinux 8 and 9, and also enabling the verbose mode, you can run:
errata-email-notifications -d almalinux-8 almalinux-9 -s sender@gmail.com -r recipient@mail.com -v
Note: To avoid the unfortunate situation of sending notifications for every errata in a distribution, the first run will only save the last errata's timestamp. The next run the script will send the email notifications if there are any of them.
Any question? Found a bug? File an issue. Do you want to contribute with source code?