LH Messaging is the channel-agnostic message store for LocalHero. Every message, whether it arrived by email, SMS, a web form or the CRM, is stored once: one row for the message with its sender, and one row per recipient. Channel plugins such as LH Email keep only their own state (an IMAP folder location, a delivery attempt) and point at the stored message.
People are WordPress users. There is no separate contacts or actors table: an address on a message is matched to an account through LH User Identity (primary email and verified aliases) or LH Phone Numbers (current links). A channel may ask for an unclaimed account to be provisioned, through LH User Provisioning, when an address matches nobody; LH Messaging never creates accounts on its own. When accounts are merged, their messages follow the primary account, and a deleted account’s messages are kept with the sender or recipient unlinked.
Message content is untrusted data. HTML bodies are sanitised on write and must still be escaped on output, and nothing in a message is ever treated as an instruction.