trigger with X failure

Details

Description

Email-ext contains 1first trigger and 2nd failure trigger. I got question with real case when people wants to have 10th failure trigger. It makes sense to not hardcode this value and make configurable.