This patch fixes metasend on Sun platforms so it supports double-quotes
and semicolons in the -m content-type parameter.  It *should* be portable
to Linux, but I don't have time or facliities to test that.
It isn't clear anyone else is even using this stuff anymore.

/lcs  sep. 2004


*** /mit/mime/bin/metasend	Fri May 23 02:13:44 1997
--- /tmp/metasend	Thu Sep 23 22:42:27 2004
***************
*** 14,19 ****
--- 14,22 ----
  # OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", 
  # WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  #
+ # Patched to allow double-quotes and semicolons in content-type, e.g.
+ #  -m 'prose/purple; name="manuscript.tex"'
+ #   -- lcs sep 2004
  
  if (! $?METAMAIL_TMPDIR) then
      set METAMAIL_TMPDIR=/tmp
***************
*** 157,163 ****
  #            set ctyperaw = $1
  #            set  ctype=`echo $ctyperaw | tr \" \'`
  	set ctype = "$1"
! 	if (`echo $ctype | grep /` == "") then
  	    echo "Invalid content-type specified"
  	    exit -1
  	endif
--- 160,166 ----
  #            set ctyperaw = $1
  #            set  ctype=`echo $ctyperaw | tr \" \'`
  	set ctype = "$1"
! 	if (`echo "$ctype" | grep -c /` == 0) then
  	    echo "Invalid content-type specified"
  	    exit -1
  	endif
***************
*** 271,277 ****
  #        set  ctype=`echo $ctyperaw | tr \" \'`
          set ctype = "$<"
      endif
!     if (`echo $ctype | grep /` == "") then
          echo "Invalid content-type specified"
          unset ctype
          goto anotherpart
--- 274,280 ----
  #        set  ctype=`echo $ctyperaw | tr \" \'`
          set ctype = "$<"
      endif
!     if (`echo "$ctype" | grep -c /` == 0) then
          echo "Invalid content-type specified"
          unset ctype
          goto anotherpart
***************
*** 468,474 ****
  else 
      if (! $isentity) then
          echo "Content-ID: $cid"   >> $fname
!         echo "Content-type: " $ctype >> $fname
          echo "Content-Description: " $cdescrip >> $fname
          echo "Content-Transfer-Encoding: " $encode >> $fname
      endif
--- 471,477 ----
  else 
      if (! $isentity) then
          echo "Content-ID: $cid"   >> $fname
!         echo "Content-type: $ctype" >> $fname
          echo "Content-Description: " $cdescrip >> $fname
          echo "Content-Transfer-Encoding: " $encode >> $fname
      endif
