Over many generations, eavesdropping plants have evolved to interpret each different combination of compounds as the signature of a specific imminent threat.
Whatever the purpose — self-defense, parasitism or mimicry, plants have been chatting and eavesdropping in complex social networks since long before Facebook, texting or even — beep.