def getToFromStrings(f):
    f.seek(0)
    to_string, from_string, cc_string = reader.getAddresses(f)
    to_emails = reader.parseAddresses(to_string)
    from_emails = reader.parseAddresses(from_string)
    cc_emails = reader.parseAddresses(cc_string)

    return to_emails, from_emails, cc_emails
def getToFromStrings(f):
    f.seek(0)
    to_string, from_string, cc_string   = reader.getAddresses(f)
    to_emails   = reader.parseAddresses( to_string )
    from_emails = reader.parseAddresses( from_string )
    cc_emails   = reader.parseAddresses( cc_string )

    return to_emails, from_emails, cc_emails
def getToFromStrings(f):
    '''
    The imported reader.py file contains functions that we've created to help parse e-mails from the corpus.
    .getAddresses() reads in the opening lines of an e-mail to find the To: From: and CC: strings,
    .parseAddresses() line takes each string and extracts the e-mail addresses as a list.
    '''
    f.seek(0)
    to_string, from_string, cc_string = reader.getAddresses(f)
    to_emails = reader.parseAddresses(to_string)
    from_emails = reader.parseAddresses(from_string)
    cc_emails = reader.parseAddresses(cc_string)

    return to_emails, from_emails, cc_emails
def getToFromStrings(f):
    '''
    The imported reader.py file contains functions that we've created to help
    parse e-mails from the corpus. .getAddresses() reads in the opening lines
    of an e-mail to find the To: From: and CC: strings, while the
    .parseAddresses() line takes each string and extracts the e-mail addresses
    as a list.
    '''
    f.seek(0)
    to_string, from_string, cc_string   = reader.getAddresses(f)
    to_emails   = reader.parseAddresses( to_string )
    from_emails = reader.parseAddresses( from_string )
    cc_emails   = reader.parseAddresses( cc_string )

    return to_emails, from_emails, cc_emails