Automatically print email attachments.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Auto Printer is a process which helps to automatically print any file received in your Gmail that matches certain criteria.
For example, you can configure this program so that prints every attachment received from myworkaddress@gmail.com with the subject "Print".
Clone this repository and install:
go install github.com/MarcoTomasRodriguez/eprinter@latestDownload the credentials.json from your Google dev account and paste it in the program folder.
Authenticate using (following the instructions):
eprinter setupConfigure the program with the following command (writing in your own config):
sudo nano ~/.eprinter/config.tomlCreate a crontab using:
crontab -eConfigure the process however you want, for example:
0,30 * * * * eprinterThe configuration file is located at $HOME/.eprinter/config.toml
allowed_emails []string
allowed_email_subjects []string
printed_label_name string
# Accept emails comming from "myemail@provider.com" and "someemail@provider.com".
allowed_emails = ["myemail@provider.com", "someemail@provider.com"]
# Accept emails with the title "Print", "Drucken" or "Imprimir".
allowed_email_subjects = ["Print", "Drucken", "Imprimir"]
# After the email was printed, add the label "Printed" so we do no print it twice.
printed_label = "Printed"Note: Subjects cannot have spaces.