This script gets new E-Mails from the specified imap server , stores them in an attachment-folder and prints them, depending on filenames.
git clone git@github.com:nordcomputer/printmailattachment.git
To run this script, you need to have a running cups service. copy and rename the env-samplefile to .env und specify your variables.
python3 printmailattachments.py
python3 winprintmailattachments.py
If you want to see a list of your printers from cups, run:
python3 printers.py
python3 winprinters.py
You may need to install the correct modules via pip. Be aware, that you need the pycups module and not the cups module.
pip uninstall cups
pip install pycups
You can use the same method to install missing modules.