Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with writing python code (v 2.7.x) to traverse through a folder structure, read all the text files (emails) and extract From and To

Need help with writing python code (v 2.7.x) to traverse through a folder structure, read all the text files (emails) and extract From and To email addresses and write the output to a CSV file.

email format image text in transcribed

Folder structure

Mailbox Name1 text 1
text 2
Name 2 text 3
text 4
text 5
Message-ID: Date: Fri, 7 Dec 2001 10:06:42 -0800 (PST) From: heather.dunton@enron.com To: k..allen@enron.com Subject: RE: West Position Mime-Version 1.0 Content-Type: text/plain; charset-us-ascii Content-Transfer-Encoding: 7bit X-From: Dunton, Heather /OU-NA/CN-RECIPIENTS/CN-HDUNTO X-To: Allen, Phillip K. ENRON/OU-NA/CN-RECIPIENTS/CN-Pallern X-CC: X-bcc: X-Folder: \Phillip_Allen_Jan2002_1\Allen, Phillip K. \Inbox X-Origin: Allen-P X-FileName: pallen (Non-Privileged) .pst Please let me know if you still need Curve Shift. Thanks, Heather

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Knowledge Discovery In Databases

Authors: Gregory Piatetsky-Shapiro, William Frawley

1st Edition

0262660709, 978-0262660709

More Books

Students also viewed these Databases questions

Question

Enhance the basic quality of your voice.

Answered: 1 week ago

Question

Describe the features of and process used by a writing team.

Answered: 1 week ago