mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
2.4 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/tsa/metamail/75_mm-2.7-remove_tilde.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. diff -Nur mm2.7.orig/src/bin/sun-message.csh~ mm2.7/src/bin/sun-message.csh~
  23. --- mm2.7.orig/src/bin/sun-message.csh~ 2003-05-14 23:58:27.000000000 +0200
  24. +++ mm2.7/src/bin/sun-message.csh~ 1970-01-01 01:00:00.000000000 +0100
  25. @@ -1,63 +0,0 @@
  26. -#!/bin/csh -fb
  27. -# (The "-fb" might need to be changed to "-f" on some systems)
  28. -#
  29. -#
  30. -# This is sun-message. It looks at $2 to figure out how to decode $1, then gives the
  31. -# user a short menu of choices, display, save, or quit.
  32. -#
  33. -mkdir /tmp/decode.$$
  34. -cd /tmp/decode.$$
  35. -
  36. -if (! $?METAMAIL_PAGER) then
  37. - set METAMAIL_PAGER=more
  38. -endif
  39. -
  40. -if ($2 == "uuencode") then
  41. - uudecode $1
  42. -
  43. - echo "The following file was uudecoded:"
  44. - echo ""
  45. -
  46. - set defans = "1"
  47. - while (1)
  48. - ls -l
  49. - set fn = *
  50. -
  51. - echo ""
  52. - echo "Please choose one:"
  53. - echo ""
  54. - echo "1 -- Display it as ASCII text"
  55. - echo "2 -- Save it as a file"
  56. - echo "3 -- Quit this menu"
  57. - echo ""
  58. - echo -n "Which do you prefer (1 - 3)? [$defans] "
  59. -
  60. - set ans = $<
  61. - if (x$ans == x) then
  62. - set ans = $defans
  63. - endif
  64. - if ($ans == 3) then
  65. - rm $1
  66. - cd /tmp; /bin/rm -rf /tmp/decode.$$
  67. - exit 0
  68. - else if ($ans == 1) then
  69. - ${METAMAIL_PAGER} $fn
  70. - else if ($ans == 2) then
  71. - set nfn = ""
  72. - echo -n "Save as: $HOME/"
  73. - set nfn = $<
  74. - if (x$nfn != x) then
  75. - /bin/cp $fn ${HOME}/$nfn
  76. - else
  77. - echo "Not Saved."
  78. - endif
  79. - else
  80. - echo "Invalid choice."
  81. - endif
  82. - set defans = "3"
  83. - end
  84. -else
  85. - ${METAMAIL_PAGER} $1
  86. -endif
  87. -
  88. -