This could actually be a Fixnum, at least in my experience. A better line (IMO) is

    eventFieldValues = [eventFieldValues] if not eventFieldValues.respond_to? :each

because that actually catches any possible non Enumerable type. But it certainly seems to me that without this fix email matching doesn't work most of the time, at least the way my log data is formatted.