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

[REBOL] Re: send/header command fails

From: tim-johnsons::web::com at: 20-Aug-2009 12:59

* Ben Brannen <ben.brannen-gmail.com> [090820 07:47]:
> sorry .... forgot to answer the original question: > whats the difference with trace/net on? > (series of 'xx' replace private data) > --------------------------------------------------- > >> probe header > make object! [ > To: [ben.brannen-xxxxxxxxx.com] > CC: none > BCC: none > From: none > Reply-To: none > Date: "Thu, 20 Aug 2009 09:54:25 -0500" > Subject: none > Return-Path: none > Organization: none > Message-Id: none > Comment: none > X-REBOL: "View 2.7.6.3.1 http://WWW.REBOL.COM" > MIME-Version: none > Content-Type: none > Content: none > ]
Ben, 'send has got some gotchas in it. In some cases, making a reference to an object rather than a specific 'copy can cause an error. Send is a mezzanine function. That is, it is written in rebol, not native C. This means that you can source the function, copy the code, do a probe on the data structure that's being sent to the port. Example: either only [ address: copy address remove-each value address [not email? :value] message: head insert insert tail net-utils/export header-obj newline message content: reduce [from address message] ;; added probe content added ;; change insert smtp-port reduce [from address message] insert smtp-port content ;; might seem a little cumbersome, but might lead to a new 'send :) HTH tim -- Tim tim-johnsons-web.com http://www.akwebsoft.com