
def configure_mail (fullname, email, replyto, orgn):
	'''
	selectmenuitem('Evolution-Mail','mnuEdit;mnuPreferences')
	wait(5)
	selectrowindex('dlgEvolutionSettings','tblEvolutionSettings',0)
	click('dlgEvolutionSettings','btnAdd')
	wait(5)
	typekey ('<alt>f')
	'''
	settextvalue ('configuration','txtFullName',fullname)	
	settextvalue ('configuration','txtEmailAddress',email)
	check('configuration','chkMakethismydefaultaccount')
	settextvalue ('configuration','txtReply-To',replyto)
	settextvalue ('configuration','txtOrganization',orgn)



file = open('configure.dat', 'r')
argmts = file.readlines()
Fullname = argmts[0].strip( )
Email = argmts[1].strip( )
ReplyTo = argmts[2].strip( )
Organization = argmts[3].strip( )

#try:
configure_mail (Fullname,Email,ReplyTo,Organization)
#except error:
#	print 'Confiration of Mail failed'
