I need you to modify a simple google apps script.
Here is the script, which you add to a Google Sheet: [url removed, login to view]
The script lists names and email addresses for the "From" addresses in all messages in a Gmail Label. It removes duplicates (if someone emails you twice).
I need you to modify the script so that it instead collects all the "To" addresses (not "From"). The one trick is that sometimes there are multiple "To" addresses, which Gmail returns as a comma-separated list.