Skip to content

shell script for automatic printing of email attachments

Notifications You must be signed in to change notification settings

thomasX/autoprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

autoprint

autoprint is a shell script for autoamtically printing email-attachments to a printer

supported file types: pdf,jpg,png supported printers: all postscript printers ... you can add multiple printer-types with cups

it does automatically print all attachments of the given e-mail addresses

files: autoprint .... shell script autoprint.cfg ... config file

the config file has 1 configline per e-mail containing the following parameters:
param 1: mail-server
param 2: mail-address
param 3: password
param 4: printserver
param 5: printqueue
param 6: attachment types (.pdf.jpg.gif.png)
param 7: copies
param 8: keep mail on Server (Y/N)
param 9: folder (optional parameter if folder is set only this mail-folder will be downloaded

logging:

we use syslog logging... if you want to put all printlogging to a customized file add the following line to /etc/rsyslog.cong: :msg, contains ," autoprint-logging:" /var/log/autprint.log

Attention: don't forget to config the logrotate !

About

shell script for automatic printing of email attachments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages