home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / softsys / andrew / 1201 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  3.0 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!THEOPHILUS.RUTGERS.EDU!rapatel
  2. From: rapatel@THEOPHILUS.RUTGERS.EDU (Rocky - Rakesh Patel)
  3. Newsgroups: comp.soft-sys.andrew
  4. Subject: message, MIME and reformat/text patch.
  5. Message-ID: <4ecaUNy01V8XM9D29D@theophilus.rutgers.edu>
  6. Date: 31 Aug 92 18:42:33 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 61
  11.  
  12. <nl>
  13. <nl>
  14. One of the problems with the MIME support is that when one sends out<nl>
  15. a message with the "Remove formatting & send" option, is that a MIME<nl>
  16. header is included with content type set to US-ASCII for those uf us<nl>
  17. in the US - even when not using encoding. This while perfectly legal,<nl>
  18. can cause mailers that invoke metamail to invoke it on pure ascii text.<nl>
  19. This annoys many users I send mail to. :-(   Given that mail gets sent<nl>
  20. everywhere in the world in pure text format, I don't believe that the followin=
  21. g<nl>
  22. patch would hurt people given that (at least from my perspective) the remove<n=
  23. l>
  24. formatting and send option was designed to allow non-Andrew users<nl>
  25. to read the message easily. I would translate that to be for non-MIME users<nl=
  26. >
  27. in the current situation. Well, here is the patch to atkams/messages/lib/sen=
  28. daux.c for those that may be interested in it:<nl>
  29. <nl>
  30. *** sendaux.c.ORIG    Tue Mar 17 19:44:13 1992<nl>
  31. --- sendaux.c    Mon Aug 31 14:14:53 1992<nl>
  32. ***************<nl>
  33. *** 1117,1124 ****<nl>
  34.             if (!charset) charset =3D "iso-8859-1"; /* Just a guess! */<nl>
  35.             NeedsEncoding =3D 1;<nl>
  36.         } else charset =3D "US-ASCII";<nl>
  37. !       fprintf(fp, "MIME-Version: 1.0\nContent-type: text/plain; charset=3D%s\n"=
  38. , charset);<nl>
  39. !       if (NeedsEncoding) fprintf(fp, "Content-Transfer-Encoding: quoted-printab=
  40. le\n");<nl>
  41.       }<nl>
  42.       /*    environ_Put("TextWriteVersion12", "X"); /* phased out 12/27/88, now d=
  43. efault */<nl>
  44.        d =3D sendmessage->HeadText;<nl>
  45. --- 1117,1126 ----<nl>
  46.             if (!charset) charset =3D "iso-8859-1"; /* Just a guess! */<nl>
  47.             NeedsEncoding =3D 1;<nl>
  48.         } else charset =3D "US-ASCII";<nl>
  49. !       if ( ! (strcmp(charset,"US-ASCII") =3D=3D 0 && (! NeedsEncoding)) ) {<nl>=
  50.  
  51. !         fprintf(fp, "MIME-Version: 1.0\nContent-type: text/plain; charset=3D%s=
  52. \n", charset);<nl>
  53. !         if (NeedsEncoding) fprintf(fp, "Content-Transfer-Encoding: quoted-print=
  54. able\n");<nl>
  55. !       }<nl>
  56.       }<nl>
  57.       /*    environ_Put("TextWriteVersion12", "X"); /* phased out 12/27/88, now d=
  58. efault */<nl>
  59.        d =3D sendmessage->HeadText;<nl>
  60. <nl>
  61. <center><flushleft><center><nl>
  62. </center></flushleft>Rakesh Patel</center><flushleft><center><nl>
  63. <italic>Systems Programmer<nl>
  64. </italic></center></flushleft><center><bold>Network Services/NJIN Project<nl>
  65. Telcommunications Division<nl>
  66. </bold></center><flushleft><center><bold><bigger>Rutgers University Computing =
  67. Services<nl>
  68. </bigger></bold></center></flushleft><center>rapatel@hardees.rutgers.edu<nl>
  69. rapatel@pilot.njin.net<nl>
  70. <nl>
  71. </center><underline><nl>
  72. </underline>
  73.