Print a datestamp on incoming faxes

Printing a datestamp on incoming faxes with HylaFAX.

psmark (abandoned freshmeat project, compile psmark src from: here) can overlay text onto Postscript documents, such as those fed to faxrcvd. For example, if you are automatically printing everything you receive, you will have a line like this in your faxrcvd:

fax2ps $FILE | lpr -Pmyprinter

If you install psmark, all you need to do is insert it into the chain of pipes, like so:

fax2ps $FILE | psmark -i - -o - -x -400 -y 20 -r 0 -s 10 "`date`" | lpr -Pmyprinter

This will place the output of the date command along the top left corner of every incoming fax, which can be useful since not all fax machines put such information on the fax when they are sending it.