home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!THEOPHILUS.RUTGERS.EDU!rapatel
- From: rapatel@THEOPHILUS.RUTGERS.EDU (Rocky - Rakesh Patel)
- Newsgroups: comp.soft-sys.andrew
- Subject: message, MIME and reformat/text patch.
- Message-ID: <4ecaUNy01V8XM9D29D@theophilus.rutgers.edu>
- Date: 31 Aug 92 18:42:33 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 61
-
- <nl>
- <nl>
- One of the problems with the MIME support is that when one sends out<nl>
- a message with the "Remove formatting & send" option, is that a MIME<nl>
- header is included with content type set to US-ASCII for those uf us<nl>
- in the US - even when not using encoding. This while perfectly legal,<nl>
- can cause mailers that invoke metamail to invoke it on pure ascii text.<nl>
- This annoys many users I send mail to. :-( Given that mail gets sent<nl>
- everywhere in the world in pure text format, I don't believe that the followin=
- g<nl>
- patch would hurt people given that (at least from my perspective) the remove<n=
- l>
- formatting and send option was designed to allow non-Andrew users<nl>
- to read the message easily. I would translate that to be for non-MIME users<nl=
- >
- in the current situation. Well, here is the patch to atkams/messages/lib/sen=
- daux.c for those that may be interested in it:<nl>
- <nl>
- *** sendaux.c.ORIG Tue Mar 17 19:44:13 1992<nl>
- --- sendaux.c Mon Aug 31 14:14:53 1992<nl>
- ***************<nl>
- *** 1117,1124 ****<nl>
- if (!charset) charset =3D "iso-8859-1"; /* Just a guess! */<nl>
- NeedsEncoding =3D 1;<nl>
- } else charset =3D "US-ASCII";<nl>
- ! fprintf(fp, "MIME-Version: 1.0\nContent-type: text/plain; charset=3D%s\n"=
- , charset);<nl>
- ! if (NeedsEncoding) fprintf(fp, "Content-Transfer-Encoding: quoted-printab=
- le\n");<nl>
- }<nl>
- /* environ_Put("TextWriteVersion12", "X"); /* phased out 12/27/88, now d=
- efault */<nl>
- d =3D sendmessage->HeadText;<nl>
- --- 1117,1126 ----<nl>
- if (!charset) charset =3D "iso-8859-1"; /* Just a guess! */<nl>
- NeedsEncoding =3D 1;<nl>
- } else charset =3D "US-ASCII";<nl>
- ! if ( ! (strcmp(charset,"US-ASCII") =3D=3D 0 && (! NeedsEncoding)) ) {<nl>=
-
- ! fprintf(fp, "MIME-Version: 1.0\nContent-type: text/plain; charset=3D%s=
- \n", charset);<nl>
- ! if (NeedsEncoding) fprintf(fp, "Content-Transfer-Encoding: quoted-print=
- able\n");<nl>
- ! }<nl>
- }<nl>
- /* environ_Put("TextWriteVersion12", "X"); /* phased out 12/27/88, now d=
- efault */<nl>
- d =3D sendmessage->HeadText;<nl>
- <nl>
- <center><flushleft><center><nl>
- </center></flushleft>Rakesh Patel</center><flushleft><center><nl>
- <italic>Systems Programmer<nl>
- </italic></center></flushleft><center><bold>Network Services/NJIN Project<nl>
- Telcommunications Division<nl>
- </bold></center><flushleft><center><bold><bigger>Rutgers University Computing =
- Services<nl>
- </bigger></bold></center></flushleft><center>rapatel@hardees.rutgers.edu<nl>
- rapatel@pilot.njin.net<nl>
- <nl>
- </center><underline><nl>
- </underline>
-