Skip to content

The script is able to get E-Mails with attachments from a given IMAP server and print them with a given printer.

Notifications You must be signed in to change notification settings

nordcomputer/printmailattachment

Repository files navigation

PrintMailAttachment

This script gets new E-Mails from the specified imap server , stores them in an attachment-folder and prints them, depending on filenames.

Usage

Clone the script:

git clone git@github.com:nordcomputer/printmailattachment.git

Run the script

To run this script, you need to have a running cups service. copy and rename the env-samplefile to .env und specify your variables.

Linux

python3 printmailattachments.py

Windows

python3 winprintmailattachments.py

See a list of printers

If you want to see a list of your printers from cups, run:

Linux

python3 printers.py

Windows

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.

To uninstall the cups module via pip:

pip uninstall cups

To install pycups:

pip install pycups

You can use the same method to install missing modules.

About

The script is able to get E-Mails with attachments from a given IMAP server and print them with a given printer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages