Dash:
[t2-trunk.git] / package / mail / metamail / 55_metamail-2.7-fixpartial.patch
blob832fd643ead4fcd9014da36c37125f12881787c7
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../metamail/55_metamail-2.7-fixpartial.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/showpartial.fixpartial Thu Feb 1 12:20:37 2001
19 +++ mm2.7/src/bin/showpartial Thu Feb 1 12:21:29 2001
20 @@ -13,7 +13,7 @@
21 endif
22 set file="$1"
23 # This next line is because message-id can contain weird chars
24 -set id=`echo $2 | tr -d \!\$\&\*\(\)\|\'\"\;\/\<\>\\`
25 +set id=`echo $2 | tr -d \!\$\&\*\(\)\|\'\"\;\/\<\>\\\\`
26 @ partnum = "$3"
27 if ($#argv == 3 || "$4" == "") then
28 set totalnum=-1
29 @@ -74,9 +74,9 @@
30 end
31 if ("$found" == "$totalnum") then
32 cd "${TREEROOT}/$id"
33 - cat "$list" > "${TREEROOT}/$id/FULL"
34 + cat $list > "${TREEROOT}/$id/FULL"
35 # cat ${TREEROOT}/$id/HDRS $list > ${TREEROOT}/$id/FULL
36 - rm "$list"
37 + rm $list
38 echo All parts of this "${totalnum}"-part message have now been read.
39 metamail -d "${TREEROOT}/$id/FULL"
40 echo WARNING: To save space, the full file is now being deleted.