As Ismael wrote back then:
While the Python script can be used as is, I really share it as a starting point from which you can write the exact logic that matches your needs.
In short: you'll need to crack the script open, figure out how it works, and add your requirements yourself. Alternatively, if you just need to send two e-mails per trigger you might be able to get away with adding a second action to your scheduled task.