def ismbox(path):
    """ Open path and check that its first line begins with "From ".
  """
    fp = None
    try:
        fp = open(path)
        from_ = fp.read(5)
    except IOError:
        if fp is not None:
            fp.close()
        return False
    else:
        fp.close()
        return from_ == 'From '
