#!/bin/sh #---------------------------------------------------------------------------- # /var/spool/hylafax/mimeconverters/text/html - html2ps converter # # Creation: 2007-01-24 jed # Last Update: $Id$ # # Copyright (c) 2007-@@YEAR@@ Holger Bruenjes, holgerbruenjes(at)gmx(dot)net # # Comment: Converts HTML attachments to PS (mime type: text/html) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version.. #---------------------------------------------------------------------------- mime_path=/var/spool/hylafax/mimeconverters if [ $# -gt 0 ] then if [ -f /usr/bin/html2ps ] then /usr/bin/html2ps $1 else # error ${mime_path}/no-converter-mail "text/html" "/usr/bin/html2ps" fi else # show usage echo "Usage: $0 filename" fi