Get all messages for a specified user
Returns messages for a specific user ID (mailbox). This is a row-by-row operation (one API call per message), so it can be slow; use only when you need messages for a different user. Use WITH (UserID='...'); LIMIT helps reduce rows.
SELECT * FROM Messages
LIMIT 10 -- fetches first 10 messages (fetching all can be very slow)
WITH (UserID='me')
--WITH (UserID='firstname.lastname@domainname.com')