Jump to content

parsing email replies


zintani

Recommended Posts

Hi Guys,

I am working on a project and the obstacle now which blocks my way is to divide the email to fragments, each of which has an email topic or reply.

For example:

yea

 

 

 

"Eva Pao" <epao@mba2002.hbs.edu> on 05/13/2001 03:50:42 PM

Please respond to <epao@mba2002.hbs.edu>

To: <John.Arnold@enron.com>

cc:

Subject: RE: waiting

 

 

nevermind.  are you at work?

 

-----Original Message-----

From: John.Arnold@enron.com [mailto:John.Arnold@enron.com]

Sent: Sunday, May 13, 2001 5:42 PM

To: epao@mba2002.hbs.edu

Subject: RE: waiting

 

 

 

huh?

 

 

 

 

"Eva Pao" <epao@mba2002.hbs.edu> on 05/13/2001 03:32:22 PM

 

Please respond to <epao@mba2002.hbs.edu>

 

To:  <John.Arnold@enron.com>

cc:

Subject:  RE: waiting

 

 

No english?  i got the math.

-----Original Message-----

From: John.Arnold@enron.com [mailto:John.Arnold@enron.com]

Sent: Sunday, May 13, 2001 5:24 PM

To: epao@mba2002.hbs.edu

Subject: RE: waiting

 

 

 

                                                  probability  *

payout    =

1 heads                                            .5        0    = 0

  tails      2 heads                                  .25      1

= .25

              tails      3 heads                        .125          2

= .25

                      tails      4 heads              .0625          4

= .25

                                tails        5 heads  .03125        8

= .25

 

 

 

"Eva Pao" <epao@mba2002.hbs.edu> on 05/13/2001 03:23:47 PM

 

Please respond to <epao@mba2002.hbs.edu>

 

To:  <John.Arnold@enron.com>

cc:

Subject:  RE: waiting

 

 

which game is that?

 

 

-----Original Message-----

From: John.Arnold@enron.com [mailto:John.Arnold@enron.com]

Sent: Sunday, May 13, 2001 5:16 PM

To: epao@mba2002.hbs.edu

Subject: Re: waiting

 

 

 

Expected value of game = 1/2 * 0 + 1/4 * 1 + 1/8 *2 + 1/16 *4 +1/32 *

8+....

                  = 0        +.25      +.25      +.25      +.25      +...

                  = infinity

 

 

 

"Eva Pao" <epao@mba2002.hbs.edu> on 05/13/2001 03:11:46 PM

 

Please respond to <epao@mba2002.hbs.edu>

 

To:  <John.Arnold@enron.com>

cc:

Subject:  waiting

 

-----Original Message-----

From: John.Arnold@enron.com [mailto:John.Arnold@enron.com]

Sent: Sunday, May 13, 2001 4:37 PM

To: epao@mba2002.hbs.edu

Subject: Re: Extra credit

rules to a game:

You flip a coin. If you get tails you win 0.  if you get heads, i give you

$1.  Keep flipping until you get a tails, at which point you walk away with

the money.  however, each heads you get after the first you double your

money.  So if you flip heads 3 times and then tails, you get $4.  What's

you bid/offer on playing this game?  (would you pay $.5 to play? $1? $2?

what you charge me play against you?)

 

So the email will be divide into this different colours when it finds an email header and save those results into separate files.

Another thing; is there a possible way to extract the headers from this text file?

Thanks in advance.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.