Quote:
Originally posted by B3R7
how can i do that ?
plz can you explain a bit more
|
If you would like to print ALL mails which arrive into the mailbox bert then add a cronjob script which runs every hour or so and then do something like
cat /var/spool/mail/bert | lp0
Which of course requires that your printer is setup properly ...
To try this example, first make a file print_mail
#!/bin/sh
cat /var/spool/mail/bert | lp0
Save it and do: chmod 755 print_mail (this will make it executable for the owner and rw for group and users (outside world)
then ./print_mail (to run it)
This will print all contents in the file: bert
Also keep in mind that when new mail arrives it will be added into mailbox bert, together with all other existing mails ...
If you don't want all other mails which you have already
printed, you should delete the one's you've already printed out.
Hope this helps ...
p.s. Does anybody knows a email agent which does have this future ?