Add checkbox subscription in buddypress config tab

Hi, I would like to add a checkbox to allow my buddypress users subscribe by mail to posts updates.

I add a image to represent my wish.

Exist any code that I can add to achieve this?

Greetings