Issue #3420977 by larowlan, smustgrave, Berdir, mstrelan: Convert Mail plugin discovery to attributes