1 diff -urN mgetty-1.1.30~/samples/new_fax.mime3 mgetty-1.1.30/samples/new_fax.mime3
2 --- mgetty-1.1.30~/samples/new_fax.mime3 2003-09-23 22:11:05.000000000 +1000
3 +++ mgetty-1.1.30/samples/new_fax.mime3 2003-09-23 22:20:41.000000000 +1000
5 # image/x-fax-g3; viewfax -geometry +5+23 '%s'; test=test -n "$DISPLAY"
6 # image/x-fax-g3;; print=printfax '%s'
8 -# You need the program mmencode for base64 encoding of the fax data,
9 -# which you will find in your metamail distribution.
10 +# You need the program base64-encode for base64 encoding of the fax data,
11 +# which you will find in your mime-codecs package.
13 # (c) 1997-1998 Roland Rosenfeld <roland@spinnaker.rhein.de>
19 - mmencode -b $file >> $TMPMAIL
20 + base64-encode < $file >> $TMPMAIL
25 # Send out the created mail:
26 sendmail $ADMIN < $TMPMAIL
29 \ No newline at end of file
31 diff -urN mgetty-1.1.30~/samples/new_fax.mime4 mgetty-1.1.30/samples/new_fax.mime4
32 --- mgetty-1.1.30~/samples/new_fax.mime4 2003-09-23 22:11:05.000000000 +1000
33 +++ mgetty-1.1.30/samples/new_fax.mime4 2003-09-23 22:21:09.000000000 +1000
35 # MIME tools as possible.
37 # This 'new_fax' only needs ' g32pbm', 'pnmscale' and 'pnmtotiff' from the
38 -# 'pbmplus' package, 'mmencode' from the 'multimail' packages, and the rest
39 -# is standard Unix tools.
40 +# 'pbmplus' package, 'base64-encode' from the 'mime-codecs' packages, and
41 +# the rest is standard Unix tools.
42 # It was tested with thsmail under Linux and PMMail under OS/2 as frontends.
44 # This script is called when a message was recorded.
51 +MMENCODE=base64-encode
57 # Here we do base64 encoding of out TIFF data and add the result
58 # into our MIME mail as attachment.
59 - $MMENCODE -b $IMAG_FILE >> $MIME_MESS 2>> $ERRO_MESS
60 + $MMENCODE < $IMAG_FILE >> $MIME_MESS 2>> $ERRO_MESS
62 # To clean up temporary TIFF data.
64 diff -urN mgetty-1.1.30~/samples/new_fax.tiff mgetty-1.1.30/samples/new_fax.tiff
65 --- mgetty-1.1.30~/samples/new_fax.tiff 2003-09-23 22:11:05.000000000 +1000
66 +++ mgetty-1.1.30/samples/new_fax.tiff 2003-09-23 22:19:32.000000000 +1000
68 # script. The following script combines all received pages to one
69 # tiff-file which is sent to all recipients beeing in the alias for fax.
70 # Reading the fax is quite easy with Netscape when the tiffsurf-plugin is
72 +# installed. You need the metamail package for metasend.
74 # As the script may be usefull for someone I'll post it here. It's quite
75 # short (and perhaps not that elegant...), but for me it works great.
76 diff -urN mgetty-1.1.30~/voice/scripts/new_voice.craig_southern mgetty-1.1.30/voice/scripts/new_voice.craig_southern
77 --- mgetty-1.1.30~/voice/scripts/new_voice.craig_southern 2003-09-23 22:11:05.000000000 +1000
78 +++ mgetty-1.1.30/voice/scripts/new_voice.craig_southern 2003-09-23 22:13:28.000000000 +1000
80 echo Content-Transfer-Encoding: base64 >> $tempfn
81 echo Content-Disposition: attachment\; filename=\"$pagefn\" >> $tempfn
83 -/usr/bin/mimencode $outputfn >> $tempfn
84 +/usr/bin/base64-encode < $outputfn >> $tempfn