def mail_test(str):
	"""Tests to see if the line starts with MAIL FROM (loose case)"""
	testcase = str[0:5]
	testcase2 = str.replace(" ", "")

	#testcase = testcase.upper()
	#testcase2 = testcase2.upper()

	if testcase == "MAIL ":
		if testcase2[4:9] == "FROM:":
			return True
		else:
			return False
	else:
		return False