Thanks, all, for the help & suggestions. I will try
them and let you know how it goes.

Michael

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Hallvard Ystad
Sent: Wednesday, June 15, 2005 8:17 AM
To: [EMAIL PROTECTED]
Subject: [REBOL] Re: Extracting Info from Emails



Hi again

I suddenly realized that noone has given an example.
Here's one (Warning! This is long!). I copied it from the
rebol console, so that's where the extra "{" on each line
is from. Here goes (it's your original email):

>> probe a: import-email {Received: by 10.38.24.21 with SMTP id
21mr1926733rnx;
{            Wed, 15 Jun 2005 01:30:48 -0700 (PDT)
{    Received: with ECARTIS (v1.0.0; list rebol); Wed, 15
Jun 2005 04:30:30 -0400 (EDT)
{    From: "Michael C. McCann" <[EMAIL PROTECTED]>
{    To: <[EMAIL PROTECTED]>
{    Subject: [REBOL] Extracting Info from Emails
{    Date: Wed, 15 Jun 2005 01:30:15 -0700
{    MIME-Version: 1.0
{    Content-type: text/plain
{    Sender: [EMAIL PROTECTED]
{    Errors-To: [EMAIL PROTECTED]
{    Precedence: bulk
{    Reply-To: [EMAIL PROTECTED]
{    X-list: rebol
{
{    Hello Everyone,
{
{    I am  new to Rebol and would like to extact certain
bits of information from
{    consistently formatted emails as they arrive in my
Outlook inbox. Is this
{    possible, and how might I go about doing this?
{
{    Thanks very much,
{    Michael McCann
{
{    }

make object! [
     To: [EMAIL PROTECTED]
     CC: none
     BCC: none
     From: [EMAIL PROTECTED]
     Reply-To: [EMAIL PROTECTED]
     Date: 15-Jun-2005/1:30:15-7:00
     Subject: "[REBOL] Extracting Info from Emails"
     Return-Path: none
     Organization: none
     Message-Id: none
     Comment: none
     X-REBOL: "Core 2.5.6.3.1 http://WWW.REBOL.COM";
     MIME-Version: "1.0"
     Content-Type: "text/plain"
     Content: {Hello Everyone,

I am  new to Rebol and would like to extact certain bits
of information from
consistently formatted emails as they arrive in my Outlook
inbox. Is this
possible, and how might I go about doing this?

Thanks very much,
Michael McCann

}
     Received: {with ECARTIS (v1.0.0; list rebol); Wed, 15
Jun 2005 04:30:30 -0400 (EDT)}
     Sender: "[EMAIL PROTECTED]"
     Errors-To: "[EMAIL PROTECTED]"
     Precedence: "bulk"
     X-list: "rebol"
]
>>

You now can access any field in the email like this:
>> a/Date
== 15-Jun-2005/1:30:15-7:00
>> a/X-list
== "rebol"

etc.


HY


Dixit "Michael C. McCann" <[EMAIL PROTECTED]> (Wed,
15 Jun 2005 01:30:15 -0700):

>Hello Everyone,
>
>I am  new to Rebol and would like to extact certain bits
>of information from
>consistently formatted emails as they arrive in my
>Outlook inbox. Is this
>possible, and how might I go about doing this?
>
>Thanks very much,
>Michael McCann
>
>
>
>-- Binary/unsupported file stripped by Ecartis --
>-- Type: application/ms-tnef
>-- File: winmail.dat
>
>
>--
>To unsubscribe from the list, just send an email to
>lists at rebol.com with unsubscribe as the subject.
>

--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.



-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to