Some friends (my priest-friend and consecrated-virgin-to-be-friend) and I were talking about this very thing one day. He uses tea as a medicine for headaches. He's not addicted to the caffeine, but it treats a real medical condition. Then we were talking about cigarettes. It's not a food or a drink.
Of course we talk about absurd ethical situations too: If a man was planning to commit suicide and jumped off the roof, and another man was shooting a gun, accidentally striking and killing the jumper, would the jumper's soul be in peril? He intended to commit suicide, but was unable because he was shot. And would the shooter's soul be in danger because he murdered a man, though without full intent. Ok, so we're theological dorks. I admit it.
What was the OP's question again?