Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

What's with the change to send in Rebol core?

 [1/2] from: gary::groupmiller::com at: 22-Oct-2000 2:49


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. My code had been working in the form of senit.r as follows: rebol [ Title: "Send Web Page" Date: 30-Sep-2000 Version: 0.1.1 File: %sendit.r Author: "Gary Miller" Email: [gary--groupmiller--com] Rights: "Copyright (c) Gary Miller 2000" Need: 2.3.0 Purpose "Email web pages" Comment: " " ] tolist: load %tolist.txt subject: read %subject.txt message: page: read %/tmp/e1.html header: make system/standard/email [ Subject: read %subject.txt Content-Type: "text/html" ] send/header tolist message header The change to core has made Rebol "send" unusable for generating html emails! ------------------------------------------------------- Gary L. Miller | filePro The Miller Group | APPGEN (253) 939-2307 Fax (253) 735-8384 | SCO [gary--groupmiller--com] | Linux http://www.groupmiller.com | Win95/98/NT/2000

 [2/2] 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
<<quoted lines omitted: 11>>
> (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

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted