* Ben Brannen <[email protected]> [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: [[email protected]]
>     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 
[email protected]
http://www.akwebsoft.com
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to