REBOL Document

Import-email - Function Summary


Summary:

Constructs an email object from an email message.

Usage:

import-email data

Arguments:

data - The email message (must be: string)

Refinements:

/multiple - Collect multiple fields in header

parent - The parent argument. (must be: object)

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 2004 REBOL Technologies