A man from Sydney’s affluent north shore has been arrested after allegedly sending multiple offensive emails to a federal politician.