adds mailbox reference to queries.

This is done to make sure that if multiple mailboxes are present, all queries can filter on which mailbox they should show content from