Allow courses to specify a role or (all roles) to send course reports, in addition to specific emails. The send-email command supports this functionality via a new CLA. The tests show that the new function supports an empty input, sorts emails properly, handles matching a role to users, the to all users with a role, and removes duplicate emails. Redundant information like roles and a * do not produce multiple copies of an email. Emails are returned in all lower case to handle mixed case emails not duplicating the same email. (Ex: email@test.com, EMAIL@test.com only returns email@test.com) This works because a different casing of an email is still the same email.
Allow courses to specify a role or (all roles) to send course reports, in addition to specific emails. The send-email command supports this functionality via a new CLA. The tests show that the new function supports an empty input, sorts emails properly, handles matching a role to users, the to all users with a role, and removes duplicate emails. Redundant information like roles and a * do not produce multiple copies of an email. Emails are returned in all lower case to handle mixed case emails not duplicating the same email. (Ex: email@test.com, EMAIL@test.com only returns email@test.com) This works because a different casing of an email is still the same email.