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" <[email protected]> on 05/13/2001 03:50:42 PM

Please respond to <[email protected]>

To: <[email protected]>

cc:

Subject: RE: waiting

 

 

nevermind.  are you at work?

 

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

From: [email protected] [mailto:[email protected]]

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

To: [email protected]

Subject: RE: waiting

 

 

 

huh?

 

 

 

 

"Eva Pao" <[email protected]> on 05/13/2001 03:32:22 PM

 

Please respond to <[email protected]>

 

To:  <[email protected]>

cc:

Subject:  RE: waiting

 

 

No english?  i got the math.

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

From: [email protected] [mailto:[email protected]]

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

To: [email protected]

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" <[email protected]> on 05/13/2001 03:23:47 PM

 

Please respond to <[email protected]>

 

To:  <[email protected]>

cc:

Subject:  RE: waiting

 

 

which game is that?

 

 

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

From: [email protected] [mailto:[email protected]]

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

To: [email protected]

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" <[email protected]> on 05/13/2001 03:11:46 PM

 

Please respond to <[email protected]>

 

To:  <[email protected]>

cc:

Subject:  waiting

 

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

From: [email protected] [mailto:[email protected]]

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

To: [email protected]

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
https://forums.phpfreaks.com/topic/248608-parsing-email-replies/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.