learning-unlimited / ESP-Website

A website to help manage the logistics of large, short-term educational programs
83 stars 57 forks source link

bcc'ing class lists causes email recursion #3172

Open willgearty opened 3 years ago

willgearty commented 3 years ago

Looks like if you email a class list as a "bcc", the list itself is then included in the recipients, causing a recursive mess that can result in dozens of the same email being sent and will likely crash the server. You can tell there is recursion going on because the appended part of the subject is duplicated. It's also possible this happens with "cc", but I haven't confirmed that yet.

It's also unclear whether this is something we can actually resolve/prevent, or if it's just due to weird email behavior.

Reported by Cloud.

willgearty commented 3 years ago

Maybe there is a way to just remove any instances of class lists when we redirect emails?