emails: Add bounce detection for mail fetching
Remove bit-rotted code