Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sending html mail from command line

14 views
Skip to first unread message

Serial # 19781010

unread,
Oct 9, 2003, 11:38:50 AM10/9/03
to
Is this possible? We are using version 4.58 Compliled under SCO
openServer5 and Unixware 7.1.3

At the moment when we send a message in what we think is html format
it is received as plain text containing all the html scripts


Spencer

Eduardo Chappa

unread,
Oct 9, 2003, 6:15:37 PM10/9/03
to
*** Serial # 19781010 (spe...@3ex.co.uk) wrote in comp.mail.pine today:

:) Is this possible? We are using version 4.58 Compliled under SCO
:) openServer5 and Unixware 7.1.3
:)
:) At the moment when we send a message in what we think is html format it
:) is received as plain text containing all the html scripts

Hi,

You should try to change the mime type of the message. Here's how to
change the type to text/html:

Create a script, which we will call, change_mime. Your script should say
something like the following:

#!/bin/sh
echo -n "Content-Type:text/html" > $2

remember to give yourself execution permission for this file.

Go to your configuration file, and where it says sending-filters it should
say:

sending-filters=/full/path/to/change_mime _TMPFILE_ _MIMETYPE_

Now when you press ^X to send the message you should be able to select the
filter "change_mime" when sending a message that you would like the
recipient to receive in text/html Content-Type.

Tip: After you do this take a look at the following configuration:
compose-send-offers-first-filter and read its help in order to understand
what it does.

Eduardo
http://www.math.washington.edu/~chappa/pine/

Serial # 19781010

unread,
Oct 10, 2003, 9:19:17 AM10/10/03
to
Eduardo,

thank you for this. It gives us partially what we need.

If we compose a message from within pine it all works fine.

we can use ^R to import an html message body and when sending we get
an automatic filter through the file we created as per your
instructions.

If we send the message direct from the command line using something
like

pine -i "^X,y" -subject tester spe...@3ex.co.uk < /tmp/file.html

then we receive plain text still. Is there any way to overcome this?

Being rarther stupid I forgot to mention we had compiled pine with the
outgoing patch so we can send from command line.

Kind regards
Spencer.

Eduardo Chappa

unread,
Oct 10, 2003, 4:57:49 PM10/10/03
to
*** Serial # 19781010 (spe...@3ex.co.uk) wrote in comp.mail.pine today:

:) If we send the message direct from the command line using something
:) like
:)
:) pine -i "^X,y" -subject tester spe...@3ex.co.uk < /tmp/file.html
:)
:) then we receive plain text still. Is there any way to overcome this?

Dear Spencer,

I am rewriting parts of the code of the patch so that will be possible.
If you write to me off the newsgroup I can send you a patch for you to
test.

Thanks!

Eduardo
http://www.math.washington.edu/~chappa/pine/

0 new messages