MIME stuff pertaining to yesterday's mail
Gary Kline
kline at tao.thought.org
Sun Aug 21 23:10:09 GMT 2005
Folks,
Well, I was right on one thing. In order to mail a file
that both mutt/elm/mail and a GUI/HTML reader can grok,
you *do* see to ^Content-type: headers. The first for the
plaintext reader, the second for the HTML reader.
Among the mail header must be a long string such as:
Content-Type: multipart/alternative; boundary="=-A1X2"
and following the line count (^Lines: 35) is this test
--=-A1X2
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
test
evolution is smart enough to center where I indicated the
center icon. Immediately below this is the boundary "END"
string. Followed by the std HTML that I've been hand coding
since '93. Followed by the boundary EOF (of sorts).
--=-A1X2
Content-Type: text/html; charset=utf-8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<TITLE> test </TITLE>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
</HEAD>
<BODY>
<P ALIGN=center><FONT SIZE="4"><B>test</B></FONT><BR>
</BODY>
</HTML>
--=-A1X2--
If there is an easier way to do this with my N hundred blurbs,
could somebody clue me in? This will only take a script of
some kind and is probably too specialized to turn into a
port, but I'll share this with anybody who wants it.
gary
--
Gary Kline kline at thought.org www.thought.org Public service Unix
More information about the freebsd-questions
mailing list