mirror of
https://codeberg.org/f01d_zero/autoprint.git
synced 2026-05-18 23:17:46 +02:00
Downloads E-Mails from a specific folder and sends them to the Default Printer via CUPS (lp)
- Go 100%
| .gitignore | ||
| autoprint | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| mailmonitor.go | ||
| main.go | ||
| README.md | ||
autoprint
Downloads E-Mails from a specific folder and sends them to the Default Printer via CUPS (lp)
Requirements
- OS: Any Linux should do
- Software:
- CUPS
- wkhtmltopdf
- Hardware:
- Any Linux compatible Printer should do
Setup
- Clone this Repository:
git clone https://github.com/itsscb/autoprint.git - Build the binary:
go build - Create the settings.yaml-file
- Run the binary (optionally using cron)
Example settings.yaml
IMAPUri: imap.provider.com:993
Username: user@example.com
Password: P@$$w0Rd
TLS: true # TLS = true, STARTTLS or other = false
SourceFolder: INBOX/Print # Where to get the E-Mails
DestinationFolder: INBOX/Printed # Where to move the E-Mails afterwards
DebugLevel: 0 # 1 = Verbose, 2 = Debug