[comp.mail.mush] Binary transparency?

les@chinet.chi.il.us (Leslie Mikesell) (07/14/90)

I'd like to be able to make mush work along with AT&T's PMX mailers that
allow binary attachments using a "Content-Type:" and "Content-Length:"
header to delimit the message body instead of escaping lines starting
with "From ".  The problem with unescaped "From "s is rare enough
that I could ignore it, but copying the messages with fgets()/fputs()
destroys attachments with embedded nulls. 
What I'm really after is a way to automatically weed out old data from
automatic mailings when people don't pick up their messages.  It might
be possible just to define a new fputs() that writes until it finds
'\n''\0' instead of just '\0' to insure that it stops at the same place
as the corresponding fgets().  However, the ability to handle attachments
is very handy - it would be nice if some free mailers supported it.

Les Mikesell
  les@chinet.chi.il.us