position cursor at correct line when editing emails