Lamar Odom went after his drug enabler with a vengeance, calling the woman a "groupie junkie" and "crack head" ... and he did it while Khole Kardashian was breathing down his neck.
TMZ has seen text messages between Lamar and Polina Polonsky, an attorney who Lamar stayed with during the last few months ... partying with him while he was doing crack.
We've learned on July 13, Khloe confronted Lamar at a downtown L.A. motel, where he was holed up with the woman and doing drugs. In an effort to save her husband, Khloe practically manhandled him out of the room and back to their home.
Once home ... Lamar started texting Polina right in front of Khloe, telling Polina he had "f**ked up." Polina responded by saying, "You're corny." Lamar -- standing next to his furious wife -- then fired his salvo, texting Polina, "Groupie junkie ... crack head."
Lamar went on, "U might want to b careful. Narcs know. They have footage, audio n pics."
Polina responded, "Stay in your lane." He fired back, "4real Know where u work U live Ur parents."
Although Khloe was aware for 2 years that Lamar was addicted to drugs ... our sources say Khloe became convinced on the day the texts were sent that crack was Lamar's overriding problem.