Which parts would Apple have an issue with? The proxy server is the only part I can think of. Using images, CSS, and iframes in Mail is presumably a very deliberate feature.
Any examples of them doing what you have proposed?
I think you're confused about the policies on their app store.