For email, I have found that just turning off automatic message fetching helps. For some reason the small amount of friction of having to manually trigger it and then wait a few seconds keeps me from doing it compulsively.
I have thought about that too, but I have several email addresses to check. So when I decide it's "email time", the auto-fetching is exactly what I need at that moment.