9 Jun 2004 16:07
Suggestion: using comp with mhbuild for custom mail
Jerry Peek <jpeek <at> jpeek.com>
2004-06-09 14:07:48 GMT
2004-06-09 14:07:48 GMT
I mostly use the command-line MH/nmh tools like comp, repl, etc.
A lot of us use GUI or semi-GUI interfaces instead. I thought I'd
mention one reason I like plain old comp/repl/etc.. It lets me
make custom multipart messages in a hurry, with HTML and plain-text
parts that differ from each other.
First: if you haven't made a multipart message with comp, here's
the main idea. You put directives for mhbuild into the message
body. Here's an example draft message, indented a bit for clarity:
To: joe <at> foo.bar
Fcc: inbox
Subject: Dinner
---------
#begin alternative
#<text/plain
The plain-text version of the message goes here
(it should be *first* in the message body)
#<text/html
<p>
The HTML version of the message goes here
(it should be <i>second</i> in the message body)
#end alternative
What I usually do is to write the plain-text part first.
Then I copy it to the end of the message, inside the HTML part,
(Continue reading)

RSS Feed