I'd like to create a pair of labels.
One would be "INTERNAL-ONLY". This label should match email threads that only include senders and receivers on the thread whose mail domain, @example.com, match my domain.
The second would be "EXTERNAL". This label should match the disjoint set. These are email threads that contain anyone in the sender or receipient list whose mail domain is anything other than @example.com.