Two components of the boundary of \(\text \textbf{I}_3\). (Deux composantes du bord de \(\text \textbf{I}_3\)) Cohomology of Drinfeld modular varieties. Part II: Automorphic forms, trace formulas and Langlands correspondence. With an appendix by Jean-Loup Waldspurger 