How do i send it with the pine software so that the actual Content Type is
seen as html and not plain text.
:) Now when i use the unix mail software "pine" to send a webpage file ,
:) e.g. somepage.html to someone, his mail client on PC sees it as:
:) Type: Text/Plain
:) which when clicked to open, sees all the html language tags, but not
:) interpret them as html format.
:)
:) How do i send it with the pine software so that the actual Content Type
:) is seen as html and not plain text.
The process to do in Unix Pine consists of three steps. In the following
example we will change the Content-Type to be of the form text/html.
1.- 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.
2.- Go to your configuration file, and where it says sending-filters it
should say:
sending-filters=/full/path/to/change_mime _TMPFILE_ _MIMETYPE_
3.- 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.
Notice that you can only use this method to change text/plain to text/*,
not to any other kind of encoding.
--
Eduardo
http://www.math.washington.edu/~chappa/pine/
> Now when i use the unix mail software "pine" to send
> a webpage file , e.g. somepage.html to someone,
> his mail client on PC sees it as:
> Type: Text/Plain
How are you sending the HTML content?
If it is as an attachment, all should work fine. If it doesn't work for
attachments make sure that you have a mime.types file (see pine
configuration for location) which contains something like
text/html html
But if you are just including the the HTML content as the main body of
your message, then things are tricky. You will need to post process the
mail via a pine filter to change the content type. A long time ago,
someone posted a script for this for text/enriched
-j
--
Jeffrey Goldberg http://www.goldmark.org/jeff/
Relativism is the triumph of authority over truth, convention over justice
I rarely read top-posted, over-quoting or HTML postings.
: #!/bin/sh
: echo -n "Content-Type:text/html" > $2
... etc
I followed exactly what you told me, but still it didn't filter
(it did ask me if i wanted to use the change-mime for sent-out filter
when i did the CTRL-X)
Also i did download the source of 4.21 and that filter.patch
and did the patch , then compile to prodcue the binaries.
So what have i missed out?
:) I followed exactly what you told me, but still it didn't filter (it did
:) ask me if i wanted to use the change-mime for sent-out filter when i
:) did the CTRL-X)
Filtering occurs after you press "^X y", your recipient will see the
content-type of the message changed to text/html, which is specially good
if your message contains html tags.
After I read Jeffrey's reply in this newsgroup, I thought that he may have
been in the right track of what you really wanted to do, if what you are
trying to do is to send a html file attached with content-type text/html,
then my directions are completely unseful, you should follow Jeffrey's
directions. My directions apply only if what you want to do is to send a
*message* that contains html tags as text/html
:) Also i did download the source of 4.21 and that filter.patch and did
:) the patch , then compile to prodcue the binaries. So what have i missed
:) out?
I do not think filter.patch has anything to do with your problem, I never
mentioned it before, so I do not know how you got to that conclusion. It
does not relate to your problem at all, so applying/reversing the patch
won't have any effect on the results that you want to get.
By the way, Pine 4.43 is the latest version, and it's a good idea to
upgrade. Pine4.21 was released one millenium ago.