Triazine-based mesoporous covalent imine polymers as solid supports for copper-mediated Chan-Lam cross-coupling N-arylation reactions.