email with a bitmaps
Marc SCHAEFER (schaefer@alphanet.ch)
8 Feb 1999 1909:37:09 +0100
Javier <javi_c@ctv.es> wrote:
> Actually I receive a notify and a pbm format.
Edit the script and add a pbmtogif or equivalent filter, for example:
#! /bin/sh
HANGUP_CODE=$1
SENDER_ID="$2"
NPAGES="$3"
PBM_UTILS=/usr/X11R6/bin/
umask 77
TMPFILE=/tmp/fx_$$
TMPFILE2=/tmp/fx_2_$$
shift;shift;shift
NUMBER=1
for i
do
(echo "Subject: fax from $SENDER_ID [$NUMBER/$NPAGES]"
echo ""
echo "Fax from $SENDER_ID with $NPAGES pages, this is page $NUMBER"
echo "which has name $i."
echo ""
# 2/2/96 separated because took too much swap
$PBM_UTILS/g3topbm $i > $TMPFILE
$PBM_UTILS/pnmscale -xscale .5 < $TMPFILE > $TMPFILE2
rm $TMPFILE
$PBM_UTILS/ppmtogif < $TMPFILE2 | uuencode a_fax.gif
rm $TMPFILE2) | mail faxadm
NUMBER=`expr $NUMBER + 1`
done
> Thanks.