]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/mgetty/mgetty-1.1.30/52-pending-metamail
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / mgetty / mgetty-1.1.30 / 52-pending-metamail
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
4 @@ -13,8 +13,8 @@
5  # image/x-fax-g3; viewfax -geometry +5+23 '%s'; test=test -n "$DISPLAY"
6  # image/x-fax-g3;; print=printfax '%s'
7  #
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.
12  #
13  # (c) 1997-1998 Roland Rosenfeld <roland@spinnaker.rhein.de>
14  #
15 @@ -65,7 +65,7 @@
16      echo "" >> $TMPMAIL
17  
18      # base64 encoder:
19 -    mmencode -b $file >> $TMPMAIL
20 +    base64-encode < $file >> $TMPMAIL
21      
22      echo "" >> $TMPMAIL
23  done
24 @@ -75,4 +75,4 @@
25  # Send out the created mail:
26  sendmail $ADMIN < $TMPMAIL
27  
28 -exit 0
29 \ No newline at end of file
30 +exit 0
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
34 @@ -19,8 +19,8 @@
35  # MIME tools as possible.
36  #
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.
43  
44  # This script is called when a message was recorded. 
45 @@ -50,8 +50,7 @@
46  CAT=cat
47  ECHO=echo
48  G3TOPBM=g32pbm
49 -#MMENCODE=mmencode
50 -MMENCODE=mimencode
51 +MMENCODE=base64-encode
52  RM=rm
53  SED=sed
54  SENDMAIL=sendmail
55 @@ -136,7 +135,7 @@
56  #
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
61  #
62         # To clean up temporary TIFF data.
63         $RM -f $IMAG_FILE
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
67 @@ -12,7 +12,7 @@
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
71 -# installed.
72 +# installed.  You need the metamail package for metasend.
73  #
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
79 @@ -50,7 +50,7 @@
80  echo Content-Transfer-Encoding: base64 >> $tempfn
81  echo Content-Disposition: attachment\; filename=\"$pagefn\" >> $tempfn
82  echo "">> $tempfn
83 -/usr/bin/mimencode $outputfn >> $tempfn
84 +/usr/bin/base64-encode < $outputfn >> $tempfn
85  
86  #rm -f $fn
87  rm -f $outputfn
88