mail imporvements

As I mentioned in my e-mail, this approach has a couple of negative consequences.

For trees that are only rarely changed, it might take months before emails are sent about build failures when we require 3 failures.

A flapping test may cause us to no longer send out any e-mails *at all*, since the state will constantly be changing between successes and failures.