Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions collectData.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import sys

#Determines whether or not a message had a meaningful attachment
def messageHasAttachment(contents):
def messageHasAttachment(contents):
if contents.find("non-text attachment was scrubbed...") == -1:
return "no"
if contents.count("non-text attachment was scrubbed") == \
Expand All @@ -28,7 +28,7 @@ def parseURL(URL):

contents = buffer.getvalue()
messageData["length"] = len(contents)

messageData["attachment"] = messageHasAttachment(contents)

dateTimeRE = re.compile("<I>([a-zA-Z]+).*?([0-9:]{8})")
Expand Down Expand Up @@ -85,7 +85,7 @@ def parseURL(URL):
URL = baseURL + match.group(1)
subject = string.replace(match.group(2), "\t", " ")

#get the author of this message (two lines later)
#get the author of this message (two lines later)
i = i + 2
line = contents[i]
match = authorRE.search(line)
Expand Down