I would like to "misuse" my email a little for a printing work. I have the whole setup ready but lack how to get my emails from my mailserver immediately as soon they arrive.
In short I will get an email with a pdf attachment and need to print the attachement. It works well with procmail, uudeview and a script to print pdf files. However I need to get download the email immediately which does not work yet.
I was looking in both fetchmail and getmail. As far I understood fetchmail only works with a cronjob or daemon. I don't think that a cronjob should be run every 1 second.
I would be very grateful to learn if this can be achieved with getmail or if other programs are availbale to do this.