Eating just to eat?

This is going to appear to ramble, but stay with me. I'm not a big lady. I spent most of my life thin, accused of being anorexic, even. But I have always LOVED food. I tend to eat when I crave, eat when I'm sad, eat when I'm bored, etc. I joked with my husband that I was a garbage disposal. But now I think something must be sort of wrong because I don't just crave things I like and give in. I will eat food just because it is there. I will eat food that tastes horrible just because it is food. I once remember my husband finding me casually eating leftovers that tasted and smelled spoiled, but I didn't want to stop because it just seems like... food is meant to be eaten. Before I started gaining weight, I never thought about it.

Now that I'm trying to get in shape I would appreciate some feedback. I think back at the times I've eaten everything in my fridge and it scares me. Eating rotten food is just plain disturbing. Does anyone else have this problem? And if so, how did you fix it?