zintani Posted October 7, 2011 Share Posted October 7, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/248608-parsing-email-replies/ Share on other sites More sharing options...
AyKay47 Posted October 7, 2011 Share Posted October 7, 2011 before I attempt to read this (nearly went blind trying) can you please change the font to black and increses the font size.. thank you Quote Link to comment https://forums.phpfreaks.com/topic/248608-parsing-email-replies/#findComment-1276755 Share on other sites More sharing options...
zintani Posted October 9, 2011 Author Share Posted October 9, 2011 Thanks for your help but I found another corpus that doesn't need to parse emai replies. Quote Link to comment https://forums.phpfreaks.com/topic/248608-parsing-email-replies/#findComment-1277491 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.