Linux.com

Home Linux Community Forums Software Command Line Automatic email printing

Automatic email printing

Link to this post 16 Jul 09

Ive been looking for a way to automatically print emails that i get via fetchmail that all have a certain string in the subject.

So far what i have patched together is fetchmail retrieves the emails via pop3. The email server deletes them once downloaded. and they are sent to a mail spool file in /var/mail/ via sendmail.

What i think needs to be done is between fetchmail and sendmail procmail should be used to sort the emails. Then i would guess that procmail should move the correct emails to a directory that then gets printed.

The reason for this is I have a few companies that send emails to my address and i need/want hard copies of the mail. Right now im sorting them manually every few days and printing them in batch.

It would be great if someone could tell me how to get procmail intergrated because i have no idea how to. I have looked at ~10 different pages that show to to do this in 10 different ways.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board