pub fn mentions_duplicate(patterns: &[Pattern]) -> bool
Whether the pattern has a ~= (duplicate) term anywhere: the Message-ID tally it needs costs a pass over the mailbox.
~=