[REBOL] Re: What's with the change to send in Rebol core?
From: kevin:sunshinecable at: 24-Oct-2000 9:41
Gary wrote:
> I had been experimenting with using Rebol for posting email & ftp'ng files
> from a Linux server. I was sending html text files with send. They were
> arriving in MS Outlook as html files.
>
> Recently, I downloaded an update to core & have been blessed with surprises:
>
> 1) The message is now in html format with Rebol version # & link at the top
> of the page.
>
> 2) HOWEVER, now both MS Outlook/Outlook Express convert my html code to
> text on the html page!!
> (as in the Rebol adv. link appears, followed by a display of all my html
> code as if it
> were text on the page!).
>
> The really perplexing thing about this is that hotmail.com displays the
> pages properly
> (With the Rebol adv. link at the top, naturally.)
>
> 3) Content-type: "text/html" is also printed _on_ the page.
Hi Gary.
I've just upgraded /Core to the latest from the experimentals page
and tested your code. My mail program (Pegasus) correctly displayed
the source page both in it's internal viewer, and by handing the page
off to my web browser (Netscape 4.61)
In reviewing the headers, I see the following, in order:
Date: Tue, 24 Oct 2000 9:30:08 -0700
Subject: Test Message
X-REBOL: 2.4.37.4.2 http://WWW.REBOL.COM
Content-Type: text/html
What you're seeing is the X-header (extended information which may or
may not be present in a message, and may or may not contain
information of interest to the client).
What's almost certainly happening is you've got an extra ^/ (end-of-
line) at the end of your Subject: which is causing a blank line to
appear after the Subject: line and before the X-REBOL: header.
A blank line signifies the end of headers and your mail client is
reading the rest as a plain text message, because it never gets the
Content-Type: header.
By adding the extra ^/ to the end of my Subject: header in my test, I
was able to cause the same results you described.
If you fix your Subject: line to remove the extra ^/, things will
work correctly.
Best regards,
Kev
------------------------------------------------------------------------
Kevin McKinnon, System/Network Administrator [kevin--sunshinecable--com]
Sunshine Communications http://www.sunshinecable.com
PGP Public Key: http://www.dockmaster.net/pgp.html PGP 6.0 www.pgp.com