1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../metamail/15_mm-2.7-csh.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
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
16 # --- T2-COPYRIGHT-NOTE-END ---
18 --- mm2.7/src/metamail/mailto.c.cshfix Sat Oct 25 09:50:36 1997
19 +++ mm2.7/src/metamail/mailto.c Sat Oct 25 09:51:03 1997
24 - char *pager = getenv("PAGER");
25 char TmpName[100], CmdBuf[150];
29 + if ((pager = getenv("METAMAIL_PAGER")) == NULL)
30 + pager = getenv("PAGER");
32 strcpy(TmpName, tmpname());
33 fp = fopen(TmpName, "w");
34 --- mm2.7/src/bin/showexternal.cshfix Sat Oct 25 09:45:05 1997
35 +++ mm2.7/src/bin/showexternal Sat Oct 25 09:46:25 1997
37 if (! $?METAMAIL_TMPDIR) then
38 set METAMAIL_TMPDIR=/tmp
40 +if (! $?METAMAIL_PAGER) then
41 + set METAMAIL_PAGER=more
47 echo "Usage: showexternal body-file access-type name [site [directory [mode [server]]]]"
51 +# Check argument integrity. Don't trust mail headers
52 +switch ("$1$2$3$4$5$6$7")
54 + echo "Illegal white space in arguments -- possibly a mail bomb?!"
56 + echo \'$0\' \'$1\' \'$2\' \'$3\' \'$4\' \'$5\' \'$6\' \'$7\'
60 set atype=`echo $2 | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
86 sed -e 1,/^\$/d < $bodyfile >> ${METAMAIL_TMPDIR}/ext.junk.$$
87 - more ${METAMAIL_TMPDIR}/ext.junk.$$
88 + ${METAMAIL_PAGER} ${METAMAIL_TMPDIR}/ext.junk.$$
89 rm ${METAMAIL_TMPDIR}/ext.junk.$$
92 --- mm2.7/src/bin/showpartial.cshfix Sat Oct 25 09:46:37 1997
93 +++ mm2.7/src/bin/showpartial Sat Oct 25 09:47:24 1997
95 echo "Usage: showpartial file id partnum totalnum"
100 # This next line is because message-id can contain weird chars
101 set id=`echo $2 | tr -d \!\$\&\*\(\)\|\'\"\;\/\<\>\\`
103 if ($#argv == 3 || $4 == "") then
110 if (! -d $TREEROOT) then
111 --- mm2.7/src/bin/sun-message.csh.cshfix Sat Oct 25 09:49:16 1997
112 +++ mm2.7/src/bin/sun-message.csh Sat Oct 25 09:50:15 1997
117 +if (! $?METAMAIL_PAGER) then
118 + set METAMAIL_PAGER=more
121 if ($2 == "uuencode") then
125 cd /tmp; /bin/rm -rf /tmp/decode.$$
127 else if ($ans == 1) then
129 + ${METAMAIL_PAGER} $fn
130 else if ($ans == 2) then
132 echo -n "Save as: $HOME/"
138 + ${METAMAIL_PAGER} $1