* updated knights (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / mail / metamail / 20_mm-2.7-uudecode.patch
bloba19dbf21e46ce51d16ddd3973001fe72368dabfe
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../metamail/20_mm-2.7-uudecode.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
7 #
8 # More information can be found in the files COPYING and README.
9 #
10 # This patch file is dual-licensed. It is available under the license the
11 # patched project is licensed under, as long as it is an OpenSource license
12 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
13 # of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
15 # version.
16 # --- T2-COPYRIGHT-NOTE-END ---
18 --- mm2.7/src/bin/sun-audio-file.ewt Fri Oct 24 09:41:11 1997
19 +++ mm2.7/src/bin/sun-audio-file Fri Oct 24 09:52:05 1997
20 @@ -6,7 +6,13 @@
21 set METAMAIL_TMPDIR=/tmp
22 endif
24 -cd ${METAMAIL_TMPDIR}
25 -uudecode < $1
26 -audiotool audio-file
27 -rm -f audio-file $1
28 +set fn=`mktemp $METAMAIL_TMPDIR/audio.XXXXXX`
29 +test -n "$fn"
30 +if $? then
31 + exit 1
32 +endif
34 +uudecode -o $fn < $1
36 +audiotool $fn
37 +rm -f $fn $1
38 --- mm2.7/src/bin/sun-message.csh.ewt Fri Oct 24 09:44:07 1997
39 +++ mm2.7/src/bin/sun-message.csh Fri Oct 24 09:52:30 1997
40 @@ -9,7 +9,13 @@
41 cd /tmp/decode.$$
43 if ($2 == "uuencode") then
44 - uudecode $1
45 + set fn=`mktemp $METAMAIL_TMPDIR/audio.XXXXXX`
46 + test -n "$fn"
47 + if $? then
48 + exit 1
49 + endif
51 + uudecode -o $fn $1
53 echo "The following file was uudecoded:"
54 echo ""
55 @@ -17,7 +23,6 @@
56 set defans = "1"
57 while (1)
58 ls -l
59 - set fn = *
61 echo ""
62 echo "Please choose one:"