def readMailTextFile(filename):
    """
    Reads text from a file.
    Returns string containing the whole text.
    """

    with open(filename) as textFile:
        text = textFile.read()
    return text