The Charak Samhita cautions

The Charak Samhita cautions Na

 Ragannapyavijoanad, Aharanupayojayet |
Parikshya Hitamashniyad Dehohyahara Sambhavah
| |

Meaning: -Don't eat because of the greed of the tongue or in forgetfulness. Be aware of what you should eat and eat everything carefully, because what you eat makes your gross body. Before consuming it you should test and make sure that your food is of satvika (or satoguni) tendency, for, this will give righteous nourishment to your mental tendencies. Referring to similar aspects (pertaining to the subtle effects of food),

-