IMPORT-EMAIL

REBOL Dictionary 2.0


Summary:

Constructs an email object from an email message.

Usage:

import-email data

Arguments:

data - The email message (must be: string)

Description:

Constructs an easily referenced object from an email message inherited by system/standard/email. The object's elements are defined by the email's header field names and are assigned the value of the corresponding fields.


    message: trim {
        To: John Doe <johndoe@nowhere.dom>
        From: Jane Doe <janedoe@nowhere.dom>
        Subject: Check Out REBOL!
    }
    email: import-email message
    print email/to
    johndoe@nowhere.dom


<Back | Index | Next>

Copyright 2003 REBOL Technologies