Previously the script attempted to enforce the maxEmailsCount setting by collecting only a limited number of addresses, but:
addresses from the "raw event" were not included in the count
excluding emails from being collected was a poor choice as emails that were excluded could have been useful to merge different contacts
With this fix the script collects all the emails it finds and only excludes those exceeding the maximum number whe building the email notification.
I've also applied the same changes to telephone numbers although the only source they were collected from were Google Contacts, so there was not an actual bug.
Previously the script attempted to enforce the maxEmailsCount setting by collecting only a limited number of addresses, but:
With this fix the script collects all the emails it finds and only excludes those exceeding the maximum number whe building the email notification.
I've also applied the same changes to telephone numbers although the only source they were collected from were Google Contacts, so there was not an actual bug.
Closes #109.